Skip to content

ducphamM2VN/nestjs-be-training

Repository files navigation

NestJSApiBoilerplateJWT

An API Boilerplate to create a ready-to-use REST API in seconds with NestJS 9.x 😻

Installation

   $ npm install

Set Enviroment for secret key JWT and other configurations

   $ cp .env.example .env

To set up on multiple environments, such as dev, stage or prod, we do as follows:

   $ cp .env.example .env.dev # or .env.stage, etc

Config settings .env for send notification when a user registers, forgot password or change password

  apiKey=[:apiKey]
  authDomain=[:authDomain]
  projectId=[:projectId]
  storageBucket=[:storageBucket]
  messagingSenderId=[:messagingSenderId]
  appId=[:appId]
  measurementId=[:measurementId]
  type=[:type]
  private_key_id=[:private_key_id]
  private_key=[:private_key]
  client_email=[:client_email]
  client_id=[:client_id]
  auth_uri=[:auth_uri]
  token_uri=[:token_uri]
  auth_provider_x509_cert_url=[:auth_provider_x509_cert_url]
  client_x509_cert_url=[:client_x509_cert_url]

Install TypeScript Node

   $ npm install -g ts-node

Running the app

    # development
    $ npm run start

    # watch mode
    $ npm run start:dev

    # production mode
    $ npm run start:prod

About

Train Nestjs intergrated Swagger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published