Skip to content

Dev Environment Setup

Barrett Falk edited this page Jun 13, 2024 · 5 revisions
  1. Add roles to your idir via Common Single Signon, and add yourself as an officer (see https://github.com/bcgov/nr-compliance-enforcement/wiki/Adding-new-Officers)
  2. Checkout Code from GitHub
  3. Open Project in VSCode
  4. Add .env files to the backend, frontend, and webeoc folders [(env files)](https://github.com/bcgov/nr-compliance-enforcement/wiki/ Environment-Variables)*
  5. Run the command docker compose up database database-migrations frontend backend nats webeoc. This will start the database, flyway migrations, backend, frontend, nats (for webeoc messaging) and webeoc (for grabbing new complaints from webeoc). Note that in development you probably just want to docker compose the database, migrations, webeoc, and nats containers. Then start the backend and frontend for automatic deployments by issuing npm start from the backend folder and then the same from the frontend folder.
Clone this wiki locally