⚡ An open-source Boilerplate for NestJS developers who want to build a high-performance, maintainable, and enjoyable app: NestJS, TypeScript, ESLint, Prettier, Docker, PostgreSQL, Prisma, Jest, and Swagger.
- NestJS for building scalable server-side applications
- Type checking with TypeScript
- Linter with ESLint
- Code Formatter with Prettier
- Containerization with Docker
- Database management with PostgreSQL and Prisma
- API Documentation with Swagger
- Testing with Jest
- Node.js (>=20.x)
- npm or yarn
- Docker (optional, for containerized setup)
-
Clone the repository:
bash git clone https://github.com/ByronMike/nestjs-template.git cd nestjs-template -
Install dependencies:
npm install
# or
yarn install
- Running the database
docker compose up- Running the app
# development
$ npm run start
# watch mode (preferred)
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covYou can build and start the app in production mode with:
npm run build
npm run start:prod
# or
yarn build
yarn start:prod- Fork this repository.
- Create your branch:
git checkout -b my-remarkable-contribution. - Commit your changes:
git commit -m 'feat: add my remarkable contribution'. - Push to the branch:
git push origin my-remarkable-contribution.
Licensed under the MIT License, Copyright © 2024
See LICENSE for more information.
Made with ❤️ by Michaël Auger My Contact