It's a simple REST interface for MongoDB written in Python that can be used straight away from a Backbone application. It's an alpha version. We are using it to develop backbone apps without having to worry about the server side. We've coded what we've needed so far. In the future we plan to add more features, such as, authentication, user privileges, etc.
At the moment backmongo can be only used as a flask extension, but we plan to add extensions from other frameworks.
as a Flask extension
from flask import Flask from flask.ext import backmongo app = Flask(__name__) backmongo.init_app(app) if __name__ == "__main__": app.run(debug=True)
From de command line
$ backmongo path/to/project/dir
There's an example in examples/todos/ (a slightly modified version of this) that illustrates how easy it's to use backmongo from a backbone application.
- Using Mocha to test a Backbone application on Node.js
- Avoiding XMLHTTPRequest problem using jQuery on Node.js
To execute the tests you need to install first bla, bla.
Then you have to start a flask server by executing: bla, bla from bla, bla directory Finally, the tests are run executing a make file: bla, bla from bla, bla directory