/Nestjs-starter-api

A starter project for NestJS

Primary LanguageTypeScript

NestJS starter with authentication

Description

Nest framework TypeScript starter repository.

Features

  • Health check endpoint
  • User registration, login, logout
  • User email verification
  • User password reset
  • Mailer using MJML + ejs template
  • Swagger

Used Technologies

  • NestJS
  • TypeORM
  • PostgreSQL
  • Passport
  • JWT
  • MJML
  • EJS

Installation

$ npm install

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

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Testing emails

Start maildev server, then open http://localhost:1080/ in your browser.

npm run maildev

Make sure to use the default mailer configuration in development mode.