Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

rethinkdb/rethinkdb-example-webpy-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it

The web.py (really basic) blog example using RethinkDB as the backend database.

This example application shows how to perform simple CRUD operations with RethinkDB:

  • create a new post
  • list blog posts (ordered by timestamp)
  • edit a post
  • delete a post

Complete stack

Installation

git clone git://github.com/rethinkdb/rethinkdb-example-webpy-blog.git
pip install web.py
pip install rethinkdb

Note: If you don't have RethinkDB installed, you can follow these instructions to get it up and running.

Running the application

We'll firstly create the database webpy and the table blogposts by running the setup:

python blog.py --setup

Note: You can override the default names of the database and table by setting the following environment variables: RDB_DB and RDB_TABLE respectively.

Now you can run the application:

python blog.py

Then open a browser: http://localhost:5000.

License

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

About

A canonical web.py blog using RethinkDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published