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.
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
$ make run
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
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
.