Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 lot.

Regards, Lalith

like image 868
Lalith Avatar asked Dec 28 '22 01:12

Lalith


1 Answers

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

like image 60
Gates VP Avatar answered Dec 30 '22 15:12

Gates VP