The web client for submitting queries to Deciphon and viewing results.
This is a React app. Deciphon Web interacts with Deciphon via Deciphon's REST API.
- 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).
- If you're using Postman, there is a collection in this repo
npm install
to install the dependencies.
Use Prettier to format code before committing.
E.g. npx prettier --write .
in the repository’s base directory.
The integration test suite uses Cypress, and there are fixtures to cover all of the API calls.
npx cypress open
npm start
Browse to the web interface.
npm run build