- Create a virtualenv (e.g.
mkvirtualenv palvelutori -p python3
) - Install Python dependencies:
pip install -r requirements.txt
- Create a Postgresql database
- Copy
palvelutori/local_settings.sample
topalvelutori/local_settings.py
and customize - Run
./manage.py migrate
to initialize the database - Create an admin account with
./manage.py createsuperuser
TODO
Run automatic tests with ./manage.py test
API usage examples (included in automatic testing) can be found in examples/curl/
Swagger documentation can be accessed at http://localhost:8000/docs/ and the API itself at http://localhost:8000/api.
The admin web interface is at http://localhost:8000/admin/