The next stage will look at developing a, user friendly Web Application using our MongoDB database. Here we look at various options and tools/frameworks for developing our application.
In this project we will explore using Node.js to build our website.
You can use the native Node.js driver (node-mongodb-native) provided with mongoDB
or one of a number of wrappers (interfaces) which are designed to simplify the interface between MongoDB and Node.js
MongooseJS is an object modeling library. It sits on top of the MongoDB driver and manages relationships and object mapping. It can detect changed properties in objects, and then run validation and update operations.
Mongojs is a node.js module for mongodb, that emulates the official mongodb API as much as possible and is a wrapper for mongodb-native
Mongode is a very thin (~200 lines of code) wrapper around the node-mongodb-native driver. It buffers collection operations until a connection is made, thus removing one level of callback nesting. It also binds collections to the database object as a key on the object making code easier to read.
Another framework useful when developing with node.JS is expressjs – which organizes your web app into an MVC architecture on the server side. (Model–view–controller (MVC) is a software architecture pattern which separates the representation of information from the user’s interaction with it)
Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.