pm1100tm / nestjs-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest Logo

Description

Sample for nestjs

Features

  • Login & Authentication(JWT)
  • CQRS, DDD
  • Sending Email (nodemailer)
  • TypeORM
  • Configuration
  • Task Scheduling
  • Typeorm migration
  • Admin-bro

Installation

$ npm install

Setup ENV

make local.env

EMAIL_SERVICE=
EMAIL_AUTH_USER=
EMAIL_AUTH_PASSWORD=
EMAIL_BASE_URL=
GOOGLE_CLIENT_ID=
GOOGLE_SECRET=
SERVICE_URL=

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# test coverage
$ npm run test:cov

Migration guide

# create migration file
$ npm run build
$ npm run migration:create Init

# generate migration file
$ npm run build
$ npm run migration:generate MIGRATION_NAME

About


Languages

Language:TypeScript 98.8%Language:JavaScript 1.2%