cytoscape / iregulon-webapp

MIT License
1 stars 0 forks source link

iRegulon web-app

Required software

Getting started

N.b. you can use public service instances for your local development to obviate local service dependencies. See below for details.

Editor

Configuration

The following environment variables can be used to configure the server:

Run targets

Running via Docker

Build the container. Here, iregulon is used as the container name.

docker build -t iregulon .

Run the container:

docker run -it -p 12345:3000 -e "NODE_ENV=production" --name "my-iregulon" iregulon

Notes:

Testing

All files /test will be run by Mocha. You can npm run test:mocha to run all tests, or you can run npm run test:mocha -- -g specific-test-name to run specific tests.

Chai is included to make the tests easier to read and write.

By running npm test, you will run the tests, the linting, and a test build.

Publishing a release

  1. Make sure the tests are passing: npm test
  2. Make sure the linting is passing: npm run lint
  3. Bump the version number with npm version, in accordance with semver. The version command in npm updates both package.json and git tags, but note that it uses a v prefix on the tags (e.g. v1.2.3).
  4. For a bug fix / patch release, run npm version patch.
  5. For a new feature release, run npm version minor.
  6. For a breaking API change, run npm version major.
  7. For a specific version number (e.g. 1.2.3), run npm version 1.2.3.
  8. Push the release: git push origin --tags