Tag Archives: np-packages

Mongo with mongoose

Work with MangoDB using mongoose in Nodejs-Express app

MangoDB is a NoSQL database which can be backend for web/mobile application. Working with Nodejs Express app, what I feel is Python Flask like environment, rendering, templating etc everything in place.


Mongoose is MangoDB modeling tool, which is designed to work with asynchronous environment (none blocking code). The following is required to use mongoose in your app

  1. mongoose module
  2. Connection string
  3. Schema
  4. Model

Install Mongoose

Install mongoose  from npm library by executing command on the terminal

npm install mangoose -save  *

*The save option will add mongoose into dependecies section of package.json (do you know, can install all dependencies of  project by firing npm install command on shell)

Continue reading