API for bridge web app.
It is recommended you use the top-level docker-compose file found in this monorepo and respective npm
commands found in the top-level README.md to develop locally.
The following instructions are for bare bones development (running node on local system instead of running through docker).
- Install and use Node.js version
14.1.x
. nvm is recommended for this. - Copy .env.secrets.example to a
.env.secrets
file and set any required values. - Set up local servers: postgres, mongo, & redis instances (you can use Docker) and set their connection info in .env.
- Seed local database with existing data, or run migrations in your clean database with
npm run migrate
- Run
npm i
- Run
npm start
- Use snake_case for database fields and variables in application code that came from database
- Use camelCase for all other variables