Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use backbone directly with MongoDB? *Without node.js, socket.io

I've seen all the posts/same apps out there that use backbone.js and node - - but I'd like to keep it as simple as possible and the App is not hugely reliant on realtime, asynchronous calls or anything.

How could I go about doing this? Can I not just use backbone.sync with MongoDB?

Would love some help here...

like image 705
Wilson Keenan Avatar asked Dec 07 '22 14:12

Wilson Keenan


1 Answers

Mongodb does provide a http interface, which you can have your client side javascript app talk directly to.

However it is limited in what it can do.

There are multiple technologies you can use that will provide a more full featured http interface to mongodb

This link gives you all the information you need about interacting with mongo via HTTP and also overviews some 3rd party technologies to enhance its capability.

MongoDB - Http Interface

Hope it helps.

like image 76
Raadad Avatar answered Jan 30 '23 14:01

Raadad