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 Support us

Description

Nest framework TypeScript starter repository.

Installation

$ pnpm install

Clearing Cash (if necessary)

$ pnpm store prune

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Docker Container

# running
$ docker-compose up

# list
$ docker ps

# stop
$ docker stop id_container

# destroy
$ docker-compose down -v

# data-base bash
$ docker compose exec db bash

Migrations

# create
$ typeorm migration:create src/lib/database/migrations/--migration-name--

# running the new migration
$ pnpm migration:run

# Rollbacks
$ typeorm migration:revert --fake

Seeds

# running
$ pnpm seed:run

Test

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm 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.

Stay in touch

Url para acessar o swagger em ambiente de desenvolvimento: http://localhost:5000/server#