Do you know any tutorial for mongoDB in nodeJS? [closed]
I just got started with nodeJS, and don’t know much about it. Also I found mongoDB, and I want to use it in my project.
I searched for a tutorial, but there are all examples, that I don’t completely understand.
Do yo know any tutorial that could help me?
These should help you get started:
Based on old version of node, but useful walkthrough of using mongodb-native package.
http://dailyjs.com/tags.html#lmawa The folks at dailyjs.com walk you through building a web-app with node.js and mongoDB (using mongoose). This link is the full series of posts that make up the tutorial.
Hope this helps.
Via howtonode.org – it’s supser short but gives you the basics and is current (as this question is months old now).
Also uses coffee-script and express and goes into testing with mocha and should.js.
Several of the links in the other answers are now outdated. In particular, the docs now recommend using a new top-level class called MongoClient.
10gen includes a tutorial in its documentation that helped me: http://mongodb.github.com/node-mongodb-native/index.html
This is a link to a very nice series of video to get started on node and mongo.
Hope it helps.
try Mike Wilson’s Building Node Applications with MongoDB and Backbone book.
Just for the people who will see this later, at first since in the time I posted this question, I wasn’t used to node.js coding style, but what helped me was this tutorial: