Skip to content

A restful web service for the Saccharomyces Genome Database (SGD)

License

Notifications You must be signed in to change notification settings

ggiaever/SGDBackend-Nex2

 
 

Repository files navigation

SGDBackend-Nex2

Build Status

A restful web service for the Saccharomyces Genome Database (SGD) NEX 2, as well as an authenticated curation interface.

SGD API documentation can be found at https://github.com/yeastgenome/SGDBackend-Nex2/blob/master/docs/webservice.MD.

Setup

Prerequisites: node.js 6.0.0+ and Python 2.7.x. To simplify Python setup, virtualenv is highly suggested.

Make sure you have the needed environmental variables configured in dev_variables.sh, then

$ make build

Run Locally

$ make run

Run Tests

Be sure to have a test_variables.sh file to configure test environemntal variables.

$ make tests

This command runs both the JavaScript tests as well as the Python tests. To run just the JavaScript tests

$ npm test

Or the python tests

$ source test_variables.sh && nosetests -s

Varnish Cache and Rebuilding the cache

Caching uses varnish. To rebuild the cache, run

$ source /data/envs/sgd/bin/activate && source prod_variables.sh && python src/loading/scrapy/pages/spiders/pages_spider.py

using environmental variable CACHE_URLS, a comma-sepratated list of varshish host URLs (or a single one) such as http://locahost:5000.

About

A restful web service for the Saccharomyces Genome Database (SGD)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 68.1%
  • PLpgSQL 21.7%
  • JavaScript 8.7%
  • CSS 0.8%
  • Shell 0.2%
  • Ruby 0.2%
  • Other 0.3%