Dev Environment Setup - bcgov/nr-compliance-enforcement-cm GitHub Wiki

  1. Add .env file to the backend directory (note: file is attached, and needs to be renamed to .env)
  2. Run the command docker-compose up. For development purposes, you'll likely just want to start the database and migrations containers via docker-compose, and start the backend using npm start (from within the backend directory).

backend.env.txt

GraphQL Playground

Useful in development environment. Go to http://localhost:3003/graphql, and you can run queries.

e.g.

query { users { id name email } }