Skip to content

Stefano31/nestjs-clean-boilerplate

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective

Description

Production ready boilerplate, nothing else to think.

This boilerplate aims to offer every that you need to start develop following best practices:

  • Clean architecture
  • Optimaized (release image)[.docker/node/release/Dockerfile] for NodeJS.
  • Code quality check:
    • Style guide, linter, and formatter using ts-standard
    • Find unused files, dependencies and exports using knip
  • commit linter with conventional commit
  • VSCode debugger enabled attaching applications and tests.
  • SWC fast compiler
  • Zod schema declaration and validation library

Next features

Requirements

  • Docker

Setup

docker-compose up

This command runs all apps in debug mode.

Command

docker-compose logs --follow SERVICE
docker-compose exec SERVICE COMMAND

Test

# unit tests
docker-compose exec server npm run test

# e2e tests
docker-compose exec server npm run test:e2e

# test coverage
docker-compose exec server npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Contributors

License

NestJS is MIT licensed.

About

Production ready boilerplate, nothing else to think.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published