Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rethinkdb/rethinkdb-example-webpy-blog
A canonical web.py blog using RethinkDB
https://github.com/rethinkdb/rethinkdb-example-webpy-blog
Last synced: 24 days ago
JSON representation
A canonical web.py blog using RethinkDB
- Host: GitHub
- URL: https://github.com/rethinkdb/rethinkdb-example-webpy-blog
- Owner: rethinkdb
- Archived: true
- Created: 2013-02-06T20:48:55.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-04-16T01:37:53.000Z (over 9 years ago)
- Last Synced: 2024-04-14T14:50:01.090Z (8 months ago)
- Language: Python
- Size: 196 KB
- Stars: 20
- Watchers: 28
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rethinkdb - Web Blog Example
README
# What is it #
The [web.py](http://webpy.org/) (really basic) [blog example](http://webpy.org/src/blog/0.3)
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 #
* [web.py](http://webpy.org/)
* [RethinkDB](http://www.rethinkdb.com)# 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](http://www.rethinkdb.com/docs/install/).
# 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: .
# License #
This demo application is licensed under the MIT license: