Javascript 你知道nodeJS中mongoDB的任何教程吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6166322/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 20:31:24  来源:igfitidea点击:

Do you know any tutorial for mongoDB in nodeJS?

javascriptnode.jsmongodb

提问by Farid Nouri Neshat

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

我刚开始接触nodeJS,对它了解不多。我还找到了 mongoDB,我想在我的项目中使用它。我搜索了一个教程,但有所有的例子,我不完全理解。你知道任何可以帮助我的教程吗?谢谢

回答by Jayson J. Phillips

These should help you get started:

这些应该可以帮助您入门:

Hope this helps.

希望这可以帮助。

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

[更新] 2012
年 2 月14 日- http://howtonode.org/node-js-and-mongodb-getting-started-with-mongojs通过 howtonode.org - 它非常简短,但为您提供了基础知识并且是最新的(如这个问题已经有几个月了)。

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

[更新] 7/25/2012- http://blog.james-carr.org/2012/01/16/blog-rolling-with-mongodb-node-js-and-coffeescript/也使用咖啡脚本和快递并使用 mocha 和 should.js 进行测试。

回答by Max

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.

其他答案中的几个链接现已过时。特别是,文档现在建议使用名为MongoClient的新顶级类。

10gen includes a tutorial in its documentation that helped me: http://mongodb.github.com/node-mongodb-native/index.html

10gen 在其文档中包含一个帮助我的教程:http: //mongodb.github.com/node-mongodb-native/index.html

回答by Farid Nouri Neshat

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:

只是为了稍后会看到这个的人,起初因为我发布这个问题的时候,我不习惯 node.js 编码风格,但帮助我的是这个教程:

https://web.archive.org/web/20130926043928/http://christiankvalheim.com/post/3853862905/mongotutorial0

https://web.archive.org/web/20130926043928/http://christiankvalheim.com/post/3853862905/mongotutorial0

回答by Kuntal Shah

This is a link to a very nice series of video to get started on node and mongo. http://www.youtube.com/watch?v=0_GNHWZHc-o

这是一个非常好的视频系列的链接,可以开始使用 node 和 mongo。 http://www.youtube.com/watch?v=0_GNHWZHc-o

Hope it helps.

希望能帮助到你。