Skip to content

auto-mat/klub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto*mat klub

Build Status Coverage Status

Documentation

Docs

Instalation

Copy .env-sample, to .env and change the CHANGE_MEs.

Instalace (Docker compose)

$ cp .env-sample .env
$ $EDITOR .env

$ docker-compose build --build-arg UID=$UID
$ docker-compose up

In a new terminal run

$ docker exec -it klub_web_1 bash
$ cd apps/aklub && django-admin.py compilemessages -l cs_CZ && cd ../../
$ python manage.py migrate
$ python manage.py createsuperuser2

Running

For development use

$ ./develop.sh

To launch the dev environment. To launch the development web server run

python manage.py runserver 0.0.0.0:8000

Other usefull commands are

Run formatter

./runblack.sh

Run test suit

pytest apps

Run other test suit

python3 manage.py test

Run a single test

./single-pytest.sh path/to/unit/file.py

K8S

Configuration can be found here