0

I have been trying Node.js+MongoDB tutorials from Googling and old stackoverflow answers, such as http://dailyjs.com/tags.html#lmawa, http://howtonode.org/express-mongodb, and videos online. Since these tutorials are out-dated by a couple of years (which is a lot for the fast-evolving Node.js), I've been struggling to figure out how to make them work, in vain and pain.

Do you know any RECENT tutorials that work with the latest version of Node.js and MongoDB? Thanks!

HaoQi Li
  • 11,970
  • 14
  • 58
  • 77

2 Answers2

2

Have you looked at:

All these resources are up to date.

I know node.js is fast evolving, and sometimes documentation lags, but this case you should not have any problems.

Also: Inside the official docs you find a few other resources.

TheHippo
  • 61,720
  • 15
  • 75
  • 100
2

You did not mention any specific module you are using to use mongodb. So to begin with choose one. If you check the joyent/node modules page it shows so many modules you can use to work with mongodb.

Please check the page: https://github.com/joyent/node/wiki/modules#wiki-db-nosql-mongo. Most of the packages listed have proper documentation. And you can find tutorials on their pages too. The two most used are mongodb and mongoose.

mongodb

Its documentation page has

mongoose

Project page

Community
  • 1
  • 1
user568109
  • 47,225
  • 17
  • 99
  • 123
  • [The joyent/node modules](https://github.com/joyent/node/wiki/modules#wiki-db-nosql-mongo) page says that node-mongodb-native ("mongodb" in your comment) is the "Official Driver", but both are supported by 10gen. Any comments on which one to use? – HaoQi Li Apr 18 '13 at 06:57
  • Do we must have modules to use MongoDB? If so, what is the module used in [this tutorial](http://howtonode.org/express-mongodb)? Thanks! – HaoQi Li Apr 18 '13 at 07:01
  • @HaoQiLi The tutorial you mention uses mongodb/node-mongodb-native. The choice depends on your needs. For basic operations use mongodb. See comparisons here https://groups.google.com/forum/?fromgroups=#!topic/nodejs/ix2mTe0bizU and http://stackoverflow.com/questions/9232562/mongoose-vs-mongodb-nodejs-modules-extensions-which-better-and-why – user568109 Apr 18 '13 at 07:36