A Node.js web service framework for RESTful web services. very similar to how Express work. Just little ddifferent syntax. All mongoose codes are similar.
mongodb object modeling for node.js to create database models
to mongodb deployment
- npm init -y //creating package.json, this include all dependencies//
- npm i restify restify-errors mongoose mongoose-timestamp
retify-errors ==> handles errors elegently - npm i -D nodemon // -D for add as a developer dependency
// nodemon --> no need to restart everytime. - add scripts to package.json file --> start and dev
- add index.js and config.js files to project
- in config file --> set up environment variables (an object)
- to create db, use mLab (hosts mongoDB databases)
- bring resources to index.js file
- create and open db connection