Skip to content

Boilerplace NestJS with JWT and connect MongoDB and TypeORM

Notifications You must be signed in to change notification settings

SangVoM/boilerplate-nestjs

Repository files navigation

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

Boilerplate NestJS Docker

Usage example

Information: Project is divided into 2 branches

  • Main: Use noSql database with connect is mongodb
  • TypeOrm: Use sql database with connect is typeOrm

Step 1: Init project

  • Build docker
docker-compose build
  • Start docker compose
docker-compose up -d

Step 2: Access

Other

Log System

  • api-server
docker logs --tail 1000 api-service 

Connect database use DataGrip

  • use dataGrip with mongoDb
Host: localhost
Port: 27017
User: root
password: root
Database: service
URL: mongodb://xxxx:xxx/xxx?authSource=admin
  • use dataGrip with TypeOrm
Host: localhost
Port: 5432
User: root
password: root
Database: boilerplate
URL: jdbc:postgresql://localhost:5432/boilerplate

About

Boilerplace NestJS with JWT and connect MongoDB and TypeORM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published