Skip to content

RESTful API with JWT & Swagger. Built with NestJS (node.js), TypeScript, Mongoose (MongoDB) and Passport.js (for JWT implementation).

Notifications You must be signed in to change notification settings

jeanpierm/rest-api-nestjs-mongo

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

RESTful API with JWT & Swagger built with NestJS

Installation

npm install

Running the mongodb container with docker-compose

# up container
$ docker-compose up -d

# down container
$ docker-compose down

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Captures

Swagger UI

Swagger UI

Schemas

Schemas

Test login endpoint

Test login endpoint

Test get user by id endpoint without token

Test get user by id endpoint without token

Test get user by id endpoint with token

Test get user by id endpoint with token

About

RESTful API with JWT & Swagger. Built with NestJS (node.js), TypeScript, Mongoose (MongoDB) and Passport.js (for JWT implementation).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published