Node.js Restful API starter template with TypeScript, Fastify, MongoDB, Jest and Swagger.
- Node.js >= 10
- Docker
-
Install packages:
npm install
-
Run project:
npm run start:dev
Using Jest for endpoint integration testing and swapping MongoDB with In Memory Mongo server. Code coverage report generated and consumed by Coveralls.
- Run tests with coverage:
npm run test
- Pre-commit hook is configured to run ESLint and Prettier before each commit with Husky.
- Debug configuration for VS Code is included.
Using Swagger for the endpoints documentation. Swagger UI available at http://localhost:3000/docs.
Additional Postman collection attached to repository.