| Source code | https://github.com/DiamondLightSource/pato-frontend/ |
Particle Analysis and Tomography Visualization Interface
Build time:
- VITE_APP_VERSION: App version (read from the environment or a
.envfile when runningyarn build)
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
- REPROCESSING_ENABLED: whether to show or hide reprocessing buttons
The project is built with Vite. Running development server on your machine (served at http://localhost:3000, with hot module replacement):
yarn install --immutable --immutable-cache --check-cache
yarn startThere is also a production Docker container available. Nevertheless, you can compile a production-optimised build into the build folder with yarn build (this type checks the project first), and serve it locally with yarn preview.
Other useful scripts: yarn typecheck (TypeScript only), yarn lint (ESLint) and yarn format (Prettier).
- Run
yarn test