Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (30 sloc) 1.3 KB

Simple blog using web.py and Browserid

The newest code is now hosted at https://bitbucket.org/oscarfroberg/blog-webpy-persona

Note

This is a work in progress. Do not try it, even at home. Your computer might explode!

Description

Three hours of work so far, basic functionality is there. Able to create new posts and they're fetched from the db to the front page.

Update Mar 15. Starting to look like something.

The plan is to build a basic, themeable blog software using web.py as backend and BrowserID as authentication method.

Install/requirements

First of all you obviously need web.py.

$ git clone https://github.com/webpy/webpy.git
$ cd webpy
# python setup.py install

Then you need to install sqlite3 which should be found in your package manager. Create the database with the command:

$ sqlite3 sqlitedb

Then, in sqlite:

sqlite> create table posts (id integer primary key, date text, title text, url text, content text, published integer, author text);
sqlite> create table comments (id integer primary key, date text, email text, name text, comment text, pid integer);

That's it if I'm not mistaken. Run it with:

$ python server.py

and direct your browser to http://localhost:8080