Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.06 KB

INSTALLATION.md

File metadata and controls

67 lines (45 loc) · 1.06 KB

Installation Notes

Prerequisites

Make sure you have installed...

sudo apt-get install python3-dev libxml2-dev libxslt1-dev zlib1g-dev libffi-dev openssl-dev

Create virtualenv

You should use virtualenv (or FADES). Currently supports 3.5. Create a virtualenv named pyarweb

Pyenv

pyvenv3 pyarweb

Virtualenvwrapper

If you don't know how to use virtualenvwrapper please check official documentation

mkvirtualenv -p $(which python3) pyarweb

Install requirements

pip install -r dev_requirements.txt

Create PostgresSQL DB

with Docker engine

docker run --name pyarweb-db -e POSTGRES_DB=pyarweb -p 5432:5432 -d postgres

with PostgreSQL

su - postgres
createdb pyarweb

Initialize DB

./manage.py makemigrations  # because Waliki presents some bug...
./manage.py migrate

Run some test

./manage.py test

Run service

./manage.py runserver