Skip to content
/ nests-boilerplate Public template

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

License

Notifications You must be signed in to change notification settings

igorjs/nests-boilerplate

Repository files navigation

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •