Skip to content

martandsingh/NodeJsWithMongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJsWithMongoDb

Scope

This tutorials explains how to create REST api using express js, node js & mongodb. After this tutorial you will be able to create basic get and post REST api services using node & mongo.
Put, Patch method will be updated soon in the same tutorials

What is gulp?

Gulp is basically a watcher. If you perform any change to your application, then you have to stop and restart service again and again. Gulp takes this reponsibility for you. It watches if there is some changes in your application and rebuild it automatically. You can review gulp settings in gulpfile.js

What is bookModel.js?

This file is a structure of your mongodb document. It should be same as mongodb document structure. You can relate it with entity framework in .Net.

How to run?

Download repository or clone it using git bash. Navigate to folder in command prompt(windows). Then run "npm install" to download dependencies. After that "node app.js". Congrats...your service is active now.

Happy to serve you....Thanks