A demo web application in the spirit of TodoMVC showing how to use RethinkDB as a backend for Bottle and Ember.js applications.
As any todo application, this one implements the following functionality:
- Managing database connections
- List existing todos
- Create new todo
- Retrieve a single todo
- Edit a todo or mark a todo as done
- Delete a todo
Open issues: when editing a todo, a PUT request is sent after each typed character. This could be improved to send a request is only once when Enter is pressed (pull requests welcome!)
git clone git://github.com/rethinkdb/rethinkdb-example-bottle-ember-todo.git
pip install bottle
pip install rethinkdb
Note: If you don't have RethinkDB installed, you can follow these instructions to get it up and running.
Firstly we'll need to create the database todoapp (you can override the name of the database
by setting the TODO_DB env variable) and the table used by this app: todos. You can
do this by running:
python todo.py --setup
Running the Bottle application is as simple as:
python todo.py
Then open a browser: http://localhost:5000/.
This demo application is licensed under the MIT license: http://opensource.org/licenses/mit-license.php