Wildfire Predictive Services to support decision making in prevention, preparedness, response and recovery.
- Node.js - You’ll need to have Node >= 10.x and npm >= 5.6 on your machine. You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.
Note: We are using Node 10 as a base image on our pipeline.
In the project directory, run:
Installs all dependencies in the node_modules folder.
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 test runner in the interactive watch mode.
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 REACT_APP_KEYCLOAK_REALM parameter, run
oc -n <openshift-project-name> process -f openshift/templates/global.config.yaml -p REACT_APP_KEYCLOAK_REALM=<realm-name> | oc create -f -
Branches must be named in accordance with the rules specified in .githooks/pre-push.
- branch names should be informative, meaningful and concise.
- branch names should follow the pattern (category)/(description)/(ticket number)
# Enforce branch naming conventions for this project using git hooks.
git config core.hooksPath .githooks
example of a good branch name:
# Task related to re-factoring of logging, the ticket number being 123:
task/re-factor-logging/123
example of a bad branch name:
wps-123
This project is licensed under the Apache License, Version 2.0.
Inspiration, code snippets, etc.
Template copied from