Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.61 KB

README.md

File metadata and controls

57 lines (44 loc) · 1.61 KB

Project moved

This repository and further development has been moved to gitlab.smint.no

kapina-backend

Build Status Test Coverage

Backend for RadioRevolt.no

Setup - Development

Virtualenv

Create a virtual environment for Python:

pip install virtualenv
virtualenv -p python3 venv
source venv/bin/activate

Install requirements

sudo apt-get install libpq-dev python3-dev zlib1g-dev libjpeg-dev 
pip install -r requirements.txt

Setup database and load data dump

python manage.py migrate
python manage.py collectstatic
python manage.py loaddata data_models/fixtures/beta_fixtures.json

Start the development server

python manage.py runserver

Testing and linting

We use pytest, isort, yapf and flake8 to test and lint the project. Run the commands before commiting:

flake8 api_graphql app data_models
yapf -pir api_graphql app data_models -e '**/migrations' -e '**/snapshots'
isort -rc api_graphql app data_models
pytest

Git conventions

Can be found here.

Deployment

Is described here.

kapina-frontend

Can be found here