Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you know any tutorial for mongoDB in nodeJS? [closed]

Tags:

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? thanks

like image 825
Farid Nouri Neshat Avatar asked May 29 '11 06:05

Farid Nouri Neshat


People also ask

Can we use MongoDB with NodeJS?

MongoDB is a modern, general-purpose document-oriented data platform that has been widely paired with Node. js in popular tech stacks such as the MEAN stack (MongoDB, Express. js, AngularJS, and Node. js) and the MERN stack (MongoDB, Express.

Can we use MongoDB without NodeJS?

Unless you absolutely trust your users, you need to have some middleware (such as node. js) that sits on a server (not client-side) whose job it is to say "yes you can do that, no you can't do that."


1 Answers

These should help you get started:

  • http://howtonode.org/express-mongodb
    Based on old version of node, but useful walkthrough of using mongodb-native package.

  • http://mongoosejs.com A node package you can install using npm (http://npmjs.org)
    Useful package for interacting with mongoDB from Node.

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

[UPDATE] 2/14/2012
- http://howtonode.org/node-js-and-mongodb-getting-started-with-mongojs Via howtonode.org - it's supser short but gives you the basics and is current (as this question is months old now).

[UPDATE] 7/25/2012 - http://blog.james-carr.org/2012/01/16/blog-rolling-with-mongodb-node-js-and-coffeescript/ Also uses coffee-script and express and goes into testing with mocha and should.js.

like image 69
Jayson J. Phillips Avatar answered Oct 14 '22 02:10

Jayson J. Phillips