The goal of this boilerplate is to accelerate development of Node.js project, supplied with several common modules and written in TypeScript.
- Clone this repo
git clone https://github.com/maarlf/node-boilerplate.git <project_name>
- Run
cd <project_name>
- Copy
.env.example
to.env
and adjust with your own configuration - Run
yarn install
to install required dependencies - Run
yarn test
to perform test - Run
yarn dev
to start on your local machine - Try to hit
health check
endpoint usingcurl http://localhost:8000/health
and expect200
response
This boilerplate contain common modules such as:
- API docs with
swagger
- Linting with
eslint
andprettier
- Logging with
winston
- Unit test and code coverage with
jest
- Git hooks with
husky
- Load test with
artillery