Skip to content

studentmediene/kapina-backend

Repository files navigation

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

About

Backend for radiorevolt.no

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published