DaveDH2 / SGDBackend-Nex2

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

Home Page:https://www.yeastgenome.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SGDBackend-Nex2

Build Status Coverage 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)

https://www.yeastgenome.org

License:MIT License


Languages

Language:Python 71.0%Language:PLpgSQL 16.8%Language:JavaScript 9.3%Language:TSQL 1.7%Language:CSS 0.6%Language:Shell 0.2%Language:Ruby 0.2%Language:VCL 0.1%Language:Makefile 0.1%Language:HTML 0.1%