Skip to content

Environment Variables

jon-funk edited this page Oct 2, 2024 · 24 revisions

Below are the development .env files, with any secret information removed.

Note: the files should be renamed to .env and placed in the directories as follows: Note2: If you're running as a container, you'll want to update the localhost values to "host.docker.internal".

  • backend.env: rename to .env and place in backend folder
  • frontend.env: rename to .env and place in frontend folder
  • webeoc.env: rename to .env and place in webeoc folder .

The webeoc.env values are dependant on how you're running the project. If you're using docker-compose to start webeoc, then the values should be

NATS_HOST="nats://host.docker.internal:4222" or if your machine is a distro of linux use: NATS_HOST="nats://172.18.0.1:4222" for bridge mode.

COMPLAINTS_MANAGEMENT_API_URL="http://host.docker.internal:3000/api/v1" or as above, use COMPLAINTS_MANAGEMENT_API_URL="http://172.18.0.1:3000/api/v1" for linux.

Also note that depending on how you're running the app, you'll want to update the port on the COMPLAINTS_MANAGEMENT_API_URL environment variable to match the port that the backend is listening on.

Final note: you also need to set the password for WEBEOC_PASSWORD. This is the password used to connect to the WebEOC API. Reach out to Alec or Barrett for this.

Clone this wiki locally