A simple Rest API containing:
- Node JS + Express
- Typescript
- Dependency Injection
- MongoDB integration (with mongoose)
- Module organization
- Docker + PM2
- Docker Compose for local running
- Unit Tests using Jest + TypeMoq
Just execute the file "run_dev.sh".
Note: you should have Docker installed and running.
Just import one of its test schemas to your favorite rest app.
Currently, there are Postman and Insomnia ❤️ support.
Please, note that not all the unit tests were implemented, since it's a demonstration of how to deal with unit tests + typescript.
To run unit tests, execute the following command:
npm test
If you want to run the test coverage, this is how we can do it:
npm run testcoverage