j3ko / nestjs-boilerplate

Opinionated NestJS boilerplate template
MIT License
0 stars 0 forks source link

Features

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Linting and formatting

# lint
$ yarn lint

# format
$ yarn format

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Using this repository as a template

On your forked repository you have to add this template repository as a remote.

git remote add template https://github.com/j3ko/nestjs-boilerplate.git

Run git fetch to update the changes

git fetch --all

Then is possible to merge updates from this template to your repository.

git merge template/main --allow-unrelated-histories

Common issues

When debugging, "Cannot find module bootloader.js" is encountered

  1. Open the command palette (Ctrl+Shift+P), disable and then re-enable auto-attach
  2. Reload the terminal