A simple blog platform, written in Python.
- Python 3, pip and virtualenv
- bower
- PostgreSQL server and redis
- nginx and uwsgi
- Set up the database
CREATE ROLE blog WITH LOGIN PASSWORD 'password';
CREATE DATABASE blog WITH OWNER blog;
- Change the working directory to the install directory:
$ cd /var/www
- Clone the repository:
$ git clone git@github.com:kankje/blog.git
- Copy and edit the config files accordingly:
$ cp docs/config/example.config.py app/config.py
$ cp docs/config/example.nginx.conf /etc/nginx/sites-available/blog
$ ln -s /etc/nginx/sites-available/blog /etc/nginx/sites-enabled/blog
$ cp docs/config/example.uwsgi.ini /etc/uwsgi/apps-available/blog.ini
$ ln -s /etc/uwsgi/apps-available/blog.ini /etc/uwsgi/apps-enabled/blog.ini
- Create a virtualenv:
$ virtualenv venv
- Activate the virtualenv:
$ source venv/bin/activate
- Install the dependencies:
$ python setup.py install
and$ bower install
- Start the blog service:
$ service blog start
- Visit
https://your-blog.com/admin/install
- After the installation, you can log in using
https://your-blog.com/admin/login
- For code conventions check out PEP-8
- To run tests, run
$ nosetests
in project root