Skip to content

rahul-dev7/nodejs-restful-api-swagger-mongoose-joi-valiation

Repository files navigation

node-restful-api-swagger-mongoose

Restful api with nodejs, mongoose, swagger and Joi Validation

Software Requirements

  • Node.js 13+
  • MongoDB 4+

How to Install

1. clone the project from repository https://github.com/rahulpra567/node-restful-api-swagger-mongoose.git
2. download the repository

Install the npm dependencies

First of all, we need install npm package that in pacakge.json
we need run command npm install in project in window.

Set Environment

we need rename of file env.example to .env file

How to Run for locally

we need run command npm start for run the project.

Show All Swagger Api

http://localhost:3000/api-docs