Implemented jwt authentication
Implemented role-based authorization
Default role: Admin
The following example shows that only users with Admin or Operator roles can access func()
@role_required(["Admin", "Operator"])
def func():
...
1. virtualenv env
2. source env/bin/activate
3. pip3 install -r requirements.txt
4. python3 main.py runserver
The following command will generate a html report under htmlcov
python3 main.py test
docker-compose build
docker-compose up -d
docker-compose down