Skip to content

PeterJanssen/NestProject

Repository files navigation

Description

NestJS project containing a small API for events with attendees and users.

Features

  • Docker-compose.yml with container for MySql, PostGres and Adminer
  • Controllers and services with repositories for CRUD operations
  • Generating JWT on registration or login
  • Authentication with JWT
  • Authorization with Guards
  • TypeORM
  • Interceptors and Data serialization
  • Data validation
  • OneToMany and OneToOne relation
  • Filtering, sorting and paginating data with QueryBuilder
  • Unit tests with Jest and Postman collection for API testing

Installation

$ npm install
$ docker-compose up -d

Running the app

# env
create .env file inside the root folder and copy content of .env.dev into .env
# 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

# Postman
Import the postman collection and DEV environment into Postman and execute requests

NestJS

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

Description

Nest framework TypeScript starter repository.

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published