Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.74 KB

README.md

File metadata and controls

46 lines (28 loc) · 1.74 KB

unit tests codecov

Deciphon Web

The web client for submitting queries to Deciphon and viewing results.

Architecture

This is a React app. Deciphon Web interacts with Deciphon via Deciphon's REST API.

Development

The basics

  • Check out the repository.
  • Install npm if you haven't got it. e.g. brew install node
  • You will need either Deciphon running, to use its REST API, or mock the API using e.g. Postman, or use the lib API, or mock everything with Cypress tests.
    • If you're using Postman, there is a collection in this repo mock_api.postman_collection.json, that you can import and set up a Mock Server with.
      • This will give you a Mock Server URL, running on Postman's servers, to use for testing.
      • Job ID 99 is a completed job with results. 100 is a pending job, 101 is a running job, and 103 is a failed job.
    • Check the config in src/config/config.json to set the API URL (either your local Deciphon or the Postman server).
  • npm install to install the dependencies.

Style

Use Prettier to format code before committing.

E.g. npx prettier --write . in the repository’s base directory.

Testing

The integration test suite uses Cypress, and there are fixtures to cover all of the API calls.

npx cypress open

Use

npm start

Browse to the web interface.

Deployment

npm run build