Skip to content

liliwei25/nestjs-template

Repository files navigation

main test workflow status

Description

NestJS template with everything you need to get started

  1. Uses commitlint to keep commits clean and tidy
  2. Uses eslint, prettier, husky and lint-staged to automatically format code
  3. Uses swc for speedy compilation
  4. Uses TypeScript with strict mode for improved code correctness
  5. Enabled helmet and cors for basic security
  6. Uses bun
  7. Uses zod for schema validation
  8. Uses Docker for containerization
  9. Uses Github Actions for workflows

Project setup

$ bun install

Compile and run the project

# development
$ bun run start

# watch mode
$ bun run start:dev

# production mode
$ bun run start:prod

Run tests

# unit tests
$ bun run test

# e2e tests
$ bun run test:e2e

# test coverage
$ bun run test:cov

License

This is MIT licensed.