Skip to content

gouravTheDev/node-express-api-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-Express-Mongodb

If you want to make an API set for your application with node-mongo-express and follow a proper folder structure, then fork this repo.

In the models folder mongoose scheema files are there.. in routes folder routes are specified.. In controllers node-express logics are written.

This project includes protected riutes for both user and admin

This includes JWT authentication for signin process.

Guideline:-
1. Clone the repo.
2. npm install
3. create a .env file
4. Inside the .env file create 3 variables.
DATABASE=mongodb://localhost/mydb
PORT=8000
SECRET=HDJGHDJGHDJKUTIYUOE8345UHDKFNSJFSITIEosdjidujfgjdje9urt34tketjksdlsd
5. run nodemon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published