Skip to content

React webapp to submit and retrieve jobs from Deciphon – a protein prediction tool for nanopore reads

License

Notifications You must be signed in to change notification settings

EBI-Metagenomics/deciphon_web

Repository files navigation

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

About

React webapp to submit and retrieve jobs from Deciphon – a protein prediction tool for nanopore reads

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published