Skip to content

elrmndo/nestjs-boilerplate

Repository files navigation

NestJS Boilerplate

This is my NestJS Boilerplate made with ❤️.

Prerequisites

  • Node.js 16 (if you use nvm: nvm use)
  • Docker 19.03.0+ (Docker Compose Version: Compose Specification)
  • Nest CLI 9

Getting Started

  1. Make sure port: 8080 is available for adminer.
  2. Clone the repository
## via SSH
git clone [email protected]:elrmndo/nestjs-boilerplate.git

## via HTTP
git clone https://github.com/elrmndo/nestjs-boilerplate.git
  1. Setup environment variables
cp .env.example .env
  1. Build the docker services (PostgreSQL, Adminer)
docker compose build
  1. Install the dependencies
npm install
  1. Run database migrations and seeders
# Migrations
npm run migration:run

# Seeders
npm run seeders:run

Running locally

Note: Make sure docker services are running and you have installed the dependencies.

# Non watch mode
npm start

# With watch mode
npm run start:dev

# Debug mode
npm run start:debug

Running tests

# Non watch mode
npm test

# With watch mode
npm run test:watch

# e2e Non watch mode
npm run test:e2e


# e2e watch mode
npm run test:e2e:watch

# coverage
npm run test:cov

Swagger Documentation

TBD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published