Wildfire Predictive Services to support decision making in prevention, preparedness, response and recovery.
- You’ll need to have Node >= 20.x and yarn on your machine. You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.
- Note: We are using Node 19 as a base image on our pipeline.
- On ubuntu:
sudo apt install nodejs
npm install -g yarn
In the project directory, run:
Installs all dependencies in the node_modules folder.
It's possible to configure cypress to run with an X-server with WSL2 and Windows see this blog entry
The short version is:
- Launch VcXsrv (remember to check "Disable access control")
yarn run cypress
In the project directory, create .env
file at root using .env.example
as a sample, then you can run:
Runs the app in the development mode. The page will reload if you make edits. You will also see any lint errors in the console.
Launches the jest test runner in the interactive watch mode. Includes logic only unit tests and react-testing-library component tests.
Launches the cypress test runner in the interactive watch mode. Includes end-to-end / integration tests for frontend common path interactions.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
- Create
.env
file at root using.env.example
as a sample - Run
docker compose build
and thendocker compose up
- Open http://localhost:3000 to view it in the browser.
In openshift/templates/global.config.yaml
there is a template for a global ConfigMap. This template can be applied to the Openshift project from the command line. For example, to apply the global.config template and pass a value for the VITE_KEYCLOAK_REALM parameter, run
oc -n <openshift-project-name> process -f openshift/templates/global.config.yaml -p VITE_KEYCLOAK_REALM=<realm-name> | oc create -f -
This project is licensed under the Apache License, Version 2.0.
Frontend changes should follow MaterialUI design as closely as possible, leveraging the Material-UI React implementation library, unless decided otherwise.
Inspiration, code snippets, etc.
Template copied from