Giter Site home page Giter Site logo

rethinkdb-example-webpy-blog's Introduction

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

rethinkdb-example-webpy-blog'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.