Skip to content

nconrad/ModelSEED-REST

Repository files navigation

ModelSEED REST (under dev)

This repo contains a ModelSEED RESTful API. The API wraps the ProbModelSEED and Workspace Services and provides additional methods used in the ModelSEED web app.

Requirements

node

Local Installation

git clone https://github.com/nconrad/ModelSEED-REST.git
cd ModelSEED-REST
npm install

Note: npm install installs all node module dependencies

Start Dev Server

node server.js --dev

To make our lives easier, running gulp starts a development server along with a process to update ./api-documentation.json. The dev server will restart automatically on file change (any .js file). For testing, a token can be placed in the file ./dev-user-token.

gulp

Tests

API tests are ran with npm test or gulp test.

npm test

Building Web Documentation

Docstrings in server.js are parsed into JSON using ./docs/parse-docs.js. The resulting JSON structure ./api-documentation.json is then used to produce fancy online documentation. See ModelSEED-UI for the front-end code.

Note: api-documentation.json is automatically rebuilt with gulp. To manually build it, run:

gulp docs

Production

The server script server.js should be ran with forever.

forever start -l /logs/server.log --pidFile /tmp/a -a server.js

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Author(s)

Neal Conrad [email protected]

License

Released under the MIT license.

About

Experimental JSON REST API for ModelSEED (not supported)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published