Khan_guitar
Khan_guitar

Reputation: 21

How to use mongodb with javascript web application

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.

Upvotes: 0

Views: 5838

Answers (3)

Gregor
Gregor

Reputation: 1458

There are some resources online such as this talk http://www.10gen.com/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?

Upvotes: 1

treeface
treeface

Reputation: 13341

MongoDB is a database, whereas JavaScript is a browser scripting language. The two shouldn't ever directly communicate (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 communicate with a web server (try using jquery's ajax method).

Upvotes: 6

Related Questions