1. 程式人生 > >A Simple Todo List Powered by Flask and RethinkDB

A Simple Todo List Powered by Flask and RethinkDB

After a number of requests for a basic Flask and RethinkDB template, I decided to go ahead and write a blog post. This is that post.

BTW: We always welcome requests. If you have something you’d like us to write about, or build, shoot us an email.

Today we’ll be creating a simple todo list, which you’ll be able to modify to meet your own needs. Before beginning, I highly suggest reading over

this article, which details how RethinkDB differs from some of the other NoSQL databases.

Set up RethinkDB

Install RethinkDB

Navigate here and download the appropriate package for your system. I used Homebrew - $ brew install rethinkdb - and it took almost twenty minutes to download and install the build:

==> Installing rethinkdb
==> Downloading http://download.rethinkdb.com/dist/rethinkdb-     1.11.2.tgz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/rethinkdb/1.11.2 --  fetch v8 --fetch protobuf
==> make
==> make install-osx
==> Caveats To have launchd start rethinkdb at login: ln -sfv /usr/local/opt/rethinkdb/*.plist ~/Library/LaunchAgents Then to load rethinkdb now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.rethinkdb.plist ==> Summary