Skip to content

guy7373/nestjs-boilerplate

Repository files navigation

Description

Service Description.

Installation

To use the required Node.js version, it is recommended to use nvm (Node Version Manager).

$ nvm use

Then install the required dependencies.

$ yarn install

Running the app

$ yarn start

Test

$ yarn test

# test coverage
$ yarn test:cov

The tests will spin up a local database, run the migrations, and run the tests against the local database. This requires Docker to be installed on your machine.

Create a new migration

$ yarn db:migrate-create my first migration

File xxx_my-first-migration.js in migrations folder (which will be created if not exist).

node-pg-migrate instructions here

Logger

Pino is used as the main logger. To use the logger, inject it where it is needed. ex.: import { Logger } from 'nestjs-pino'; constructor(private readonly logger: Logger) {}

API Documentation

API documentation is generated using Swagger.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors