- 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 install
Make sure redis
running
Development (watch mode):
npm run dev
Production:
npm run build
npm run start
- Open the root of the project folder (VsCode)
- Set a break point in typescript file
- Select
Debug Node
orDebug Tests
from the dropdown on the debug tab - Click the green play button to start debugging
Compile to js and bundle docs:
npm run build
Make sure local mongo
running
npm run test
The 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-docs
Bundle:
npm run bundle-docs