Hi Bud, I'm Naman Khurpia
Build a Restful CRUD API for a simple Note-Taking application using Node.js, Express and MongoDB.
-
Install latest version of NODE JS
-
Install mongoose -
npm install express body-parser mongoose --save
- Install dependencies -
npm install
- Download MongoDb Compass (u can use any mongo client) MAC -
https://downloads.mongodb.com/compass/mongodb-compass-1.26.1-darwin-x64.dmg
WINDOWS -
https://www.mongodb.com/try/download/compass
-
Edit database.config.js - place your collection URL there, right now my db URL is in place, feel free to throw in some stuff, I'll read
-
Run Server
node server.js
You can browse the apis at http://localhost:3000
You can find the tutorial for this application at https://www.callicoder.com/node-js-express-mongodb-restful-crud-api-tutorial/ PS - I edited this app a lil bit