Source code | https://github.com/DiamondLightSource/pato-frontend/ |
Particle Analysis and Tomography Visualization Interface
Build time:
- REACT_APP_VERSION: App version
Run time:
Create a configuration file named config.js, based on config.example.js, and mount custom runtime configs on the root of the deployment folder (e.g.: /usr/share/nginx/html
for nginx). In local development mode, modify config.js
in /public
instead.
- API_URL: base URL for API endpoints
- AUTH_URL: base URL for authentication endpoints
- DEV_CONTACT: email used for contacting application support
- ENVIRONMENT: application environment - one of 'production', 'staging' or 'demo'
- FEEDBACK_URL (optional): URL pointing to form that takes user feedback
Running development server on your machine:
yarn install --immutable --immutable-cache --check-cache
yarn start
There is also a production Docker container available. Nevertheless, you can compile a production-optimised build with yarn build
instead.
- Run
yarn test