This is a small proof-of-concept application, a simple todo-list. It is a single page application implemented using:
- Backbone.js
- RequireJS
- Tictail UIKit (based on Boostrap)
- jQuery UI Sortable
- Flask
- MongoDB (using the PyMongo driver)
- Gunicorn
A demo is hosted on Heroku: http://tgwizard-todolist.herokuapp.com/
For Mac OS X, Linux should be similar.
brew install python
brew install mongodb
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
# Terminal A
mongod
# Terminal B
python app.py # Best for development
# or
gunicorn app:app --error-logfile -
# or
foreman start
- Drag and drop to reorder list items doesn't work on touch devices.
- Reorder doesn't work correctly on Heroku since none of the available MongoDB providers (MongoHQ, MongoLab or MongoSoup) support MongoDB version greater than 2.4.X, and this app makes use the
$position
operator introduced in 2.6: http://docs.mongodb.org/manual/reference/operator/update/position/