- Python 2.7.x
- PostgreSQL >=9.2 (needs the JSON data type)
- memcached
For example in the latest Ubuntu, this command will install pre-requisites:
$ sudo apt-get install python-dev python-virtualenv memcached \
postgresql-9.5 postgresql-client-9.5 postgresql-server-dev-9.5
It is recommended, although optional, to first set up a virtual environment and activate it:
$ virtualenv env
$ . ./env/bin/activate
Then use pip
to install the required Python dependencies:
$ pip install -r requirements.txt
Copy config.py.sample
to config.py
and edit its content to fit your
environment.
After you tweak configuration file, database needs to be created:
$ python manage.py init_db
Optional: You might want to create a database that will be used by tests:
$ python manage.py init_test_db
After all this, you can run the site/server using ./server.py
.
Use ./server.py -h
to get a list of command-line switches
to further suit your local environment (e.g., port, listening address, ...).