Skip to content

Latest commit

 

History

History
91 lines (63 loc) · 2.13 KB

README.md

File metadata and controls

91 lines (63 loc) · 2.13 KB

NestJS Boilerplate

NestJS + Fastify + Prisma + PostgreSQL + Swagger REST API boilerplate.

Table of Contents

Requirements

  1. Docker Desktop (or similar) with support for docker-compose
  2. NodeJS v20

Commands

Install Dependencies

$ npm install

Running Docker

# docker full solution -> will install the app dependencies and run it in watch mode
$ docker compose up -d

# database only
$ docker compose up -d postgres

Seeding the Database

$ npx prisma db seed

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Running the tests

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Future Improvements

  1. Improve API configurtion and security

  2. Database

    • Manage dotenv files per environment
    • Improve security of the database