React-based web frontend for MGnify, the EBI metagenomics resource.
- Node.js >=10.13.0
MGnify-web It is usually preferable to use the mgnify-web parent repo for development. The parent repo lets you work on the API and this client side-by-side.
To work on the web client alone, you can connect to one of the remote MGnify APIs: Export the following env variables in env-config.sh file. Adjust exports if need depending on whether you are in your dev or prod environment.
source env-config.sh
If you are using Webstorm,
there are run configurations to import in .idea/runConfigurations
.
Serve with own server, or use built-in dev system by calling 'npm run server:watch'' in main directory.
npm install
npm run start --watch
Start the frontend as above, then use the Cypress test suite:
npm test
Or for a single test file e.g.:
cypress run --spec cypress/integration/index.js