- Express
- TypeScript
- Mongoose
- Redis
- Jest
- Swagger
- Rest Client
- Docker
- CircleCI
In order to run the project you must have some environment variables set. It is reccomended that you add the following to your ~/.bash_profile or equivalent, replacing the values as appropriate.
export DB_URL=
export DB_LOCAL_URL=
export NODE_ENV=
export PORT=
export NAME=Make sure node, npm
npm installMake sure redis running
Development (watch mode):
npm run devProduction:
npm run buildnpm run start- Open the root of the project folder (VsCode)
- Set a break point in typescript file
- Select
Debug NodeorDebug Testsfrom the dropdown on the debug tab - Click the green play button to start debugging
Compile to js and bundle docs:
npm run buildMake sure local mongo running
npm run testThe project is built using a continuous integration approach with CircleCi. All testing takes place in containers which we can define ourselves.
CI includes the following steps:
- Linting
- Testing
If any one of those steps fail then a build is considered unfit for production release.
In progress
Development (watch mode):
npm run serve-docsBundle:
npm run bundle-docs