GithubHelp home page GithubHelp logo

rethinkapp's Introduction

What is it

A demo web application in the spirit of 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 todo

One feature we've left out as an exercise is making this Flask todo app force users to complete their tasks. In time.

Complete stack

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.

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: http://localhost:5000/.

Annotated Source Code

After checking out the code, you can also read the annotated source here

License

This demo application is licensed under the MIT license: http://opensource.org/licenses/mit-license.php

rethinkapp's People

Contributors

al3xandru avatar neumino avatar mglukhovsky avatar coffeemug avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.