How to install mongoose driver on nodejs?
I have just started working with nodejs. I am a java script newbie. I have nodejs and mongodb running on my ubuntu. Now I downloaded the mongoose driver. Do I install it using npm or just copy the mongoose folder that has js files into nodejs lib folder? Also links to any tutorials to start working with this driver will help me a lo开发者_如何学运维t.
Regards, Lalith
Here's an extensive walkthrough: http://dailyjs.com/2011/02/07/node-tutorial-12/
Seems to be very recent.
According to LearnBoost's GitHub site, the suggested method for installation is to use npm.
https://github.com/LearnBoost/mongoose/
$ npm install mongoose
You have to install mongoose on your system or on your node package file by using command
npm install mongoose
精彩评论