Organics Info (ORI) shares information on authorized biosolids land application and compost facilities regulated under the Organic Matter Recycling Regulation (OMRR) in BC.
This project is part of the OMRR Transparency Enhancement Initiative led by the Environmental Policy and Initiatives Branch (EPIB) in the Ministry of Environment and Climate Change Strategy.
We have architecture diagrams the document the technologies used:
- Typescript (https://www.typescriptlang.org/)
- React (https://react.dev/)
- Mui (https://mui.com/)
- Leaflet (https://leafletjs.com/)
- Node (https://nodejs.org/en/)
- OpenShift container platform cluster
Here is high-level documentation on the development of applications, use of GitHub, and Openshift in the Government of BC:
Pre-requisites:
- Node.js installed on the machine
- Access to OpenShift namespace for Organics Info (ORI) project
- OC CLI installed.(https://console.apps.silver.devops.gov.bc.ca/command-line-tools) and is on path.
- Copy the .env.sample in frontend and paste it as .env and update the value of
VITE_API_URL=http://localhost:3000
- Run the env generator for windows or env generator for linux, it will generate the backend/.env file
Steps:
- Open a terminal, run the following command
oc login --server=https://api.silver.devops.gov.bc.ca:6443 --web
- switch to namespace
oc project d37bb7-dev
- Run the following command in terminal
oc port-forward service/nr-oracle-service 9080:80
, this enables access to nr oracle service on port 9080 of local machine. - Run the following command in terminal
cd backend && npm install && npm run start:debug
, this will start the backend application on port 3000. - Run the following command in terminal
cd frontend && npm install && npm run dev
, this will start the frontend application on port 3001.
Follow the steps outlined in this repository to contribute: CONTRIBUTING.md.
Copyright 2024 Province of British Columbia. Code is released under the Apache License, Version 2.0.