galaxy-api v0.0.4
galaxy-api
Here lies the REST API for Galaxy.
Installation
To install dependencies:
npm installNode 0.11.x is required for the --harmony flag which enables generators (required for Koa, the web framework). If you're running an earlier version of Node you may install n, a node version manager to quickly install 0.11.x:
npm install -g n
n 0.11.12Development
Initialise settings, if you haven't already:
cp ./settings_local.js.dist ./settings_local.jsSet these environment variables:
NODE_ENV=development
GALAXY_API_SETTINGS=./settings_local.jsTo run the local web server:
nodemon --harmony bin/apiAlternatively:
npm run-script devTo run linting tools:
gulp lintProduction
Initialise settings if you haven't already:
cp ./settings_prod.js.dist ./settings_prod.jsSet these environment variables:
NODE_ENV=production
GALAXY_API_SETTINGS=./settings_prod.jsNode 0.11.x is required for the --harmony flag which enables generators (required for Koa, the web framework).
To run the web server in production:
node --harmony bin/apiAlternatively:
npm run-script prodTesting
Initialise settings:
cp ./settings_local.js.dist ./settings_local.jsSet these environment variables:
NODE_ENV=test
GALAXY_API_SETTINGS=./settings_test.jsTo run tests:
npm testDeployment
To run the local web server:
node --harmony bin/apiAlternatively:
npm start11 years ago