Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rethinkdb/rethinkdb-example-flask-backbone-todo
A canonical backbone todo application running on flask and RethinkDB
https://github.com/rethinkdb/rethinkdb-example-flask-backbone-todo
Last synced: 3 months ago
JSON representation
A canonical backbone todo application running on flask and RethinkDB
- Host: GitHub
- URL: https://github.com/rethinkdb/rethinkdb-example-flask-backbone-todo
- Owner: rethinkdb
- Archived: true
- Created: 2013-01-19T01:08:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-10-12T21:14:19.000Z (about 9 years ago)
- Last Synced: 2024-07-19T17:42:01.221Z (4 months ago)
- Language: JavaScript
- Size: 398 KB
- Stars: 122
- Watchers: 32
- Forks: 28
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is it #
A demo web application in the spirit of [TodoMVC](http://addyosmani.github.com/todomvc/) showing how to use **RethinkDB as a backend for Flask and Backbone.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 todoOne feature we've left out as an exercise is making this Flask todo app force users to complete their tasks. In time.
# Complete stack #
* [Flask](http://flask.pocoo.org)
* [Backbone](http://backbonejs.org)
* [RethinkDB](http://www.rethinkdb.com)# Installation #
```
git clone git://github.com/rethinkdb/rethinkdb-example-flask-backbone-todo.git
pip install Flask
pip install rethinkdb
```# Start RethinkDB #
Make sure you have RethinkDB running.
If you are not running RethinkDB on your local machine with the default settings,
update the `todo.py` file on lines 21 and 22._Note_: If you don't have RethinkDB installed, you can follow [these instructions to get it up and running](http://www.rethinkdb.com/docs/install/).
# Running the application #
Firstly we'll need to create the database `todoapp` and the table used by this app: `todos`. You can
do this by running:```
python todo.py --setup
```Flask provides an easy way to run the app:
```
python todo.py
```Then open a browser: .
# License #
This demo application is licensed under the MIT license: