Mercavus Backend Challenge
- Node.js (v12.14.1)
- Typescript
- Express
- Mongoose
- Jest with Supertest for unit testing and coverage
Docker & docker-compose must be installed
$ docker-compose up --build
$ yarn
# copy env.example to env (you can change the default port which is 3000)
$ cp .env.example env
change MONGODB_URL to your mongodb instance connection URL (Mongodb should be installed and running)
# build app
$ yarn build
# start app
$ yarn start
# app is running on
http://localhost:3000/
# unit tests with coverage
$ yarn test
# swagger api doc
http://localhost:3000/api/v1/docs/