Sunday, January 19, 2014

Lesson 7: Angularjs/Nodejs/MongoDB Tutorial: Hooking up Node REST server to mongoDB using mongoose

In Lesson 6, we created unit test specs for both our client and server. So far, we have a fully working and tested CRUD for devices. But, the server is still using a static javascript array to hold the list of devices. Its now time to refactor our server side code and hook it up to mongodb using mongoose framework. Since we have good tests, we should feel comfortable in refactoring the code base.

Installing and starting mongodb

  1. brew update
  2. brew install mongodb
  3. mongod&

STOPPED DEVELOPMENT OF THIS IN ANGULAR. Currently, I am developing in Meteorjs framework and its a completely refreshing way to build fully functional websites. Check out the new post regarding meteor.

No comments: