i am very much confused ...i need to use mongo db for databases in my web application..or simply i want to use mongodb for storing my web application data...i have searched but not getting the clear answer.
i am very much confused ...i need to use mongo db for databases in my web application..or simply i want to use mongodb for storing my web application data...i have searched but not getting the clear answer.
Share Improve this question asked Mar 2, 2012 at 7:19 Khan_guitarKhan_guitar 211 silver badge1 bronze badge3 Answers
Reset to default 6MongoDB is a database, whereas JavaScript is a browser scripting language. The two shouldn't ever directly municate (unless you're talking about NodeJS??). You should be sending information from JavaScript to your web server which will write/read/update/delete records in MongoDB. In turn, the web server should return data to JavaScript containing information about the result of the original request.
If you're asking this kind of question, you should read up more on how MongoDB works with a scripting language of your choice. You should also read up on JavaScript in general and how to municate with a web server (try using jquery's ajax method).
There are some resources online such as this talk http://www.10gen./presentations/mongosf-2011/building-web-applications-mongodb-introduction which will give you some information on building web applications with mongodb - but maybe what you are looking for is a "building your first web application" tutorial as well to get you started?
End-to-End JavaScript!
These are the best starters I could find on this subject:
http://cwbuecheler./web/tutorials/2013/node-express-mongo/
http://www.toptal./nodejs/why-the-hell-would-i-use-node-js
http://hectorcorrea./#/blog/introduction-to-node-js/51
http://blog.mongodb/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and