This setup has been tested with Python 3.9 and Django 4.0.3.
Required for user authentication with BattleNet account.
- Go to https://develop.battle.net/access/ and log into your BattleNet account
- Create new API client
- Provide client name, redirect url, intended use
- Save Client ID and Client Secret and do not share them with anyone
- Create .env file in projects directory with content:
BNET_CLIENT_ID=your_client_id_from_bnet_api
BNET_SECRET=your_secret_from_bnet_api
Install dependencies:
pipenv install
Run django application
python manage.py runserver
Preparing (if there are any changes to db schema) and running migrations
python manage.py makemigrations
python manage.py migrate
Create superuser
python manage.py createsuperuser
Run tests using Coverage
coverage run manage.py test
Get report from coverage:
coverage report -m
- json files - items, runewords... (a lot)
- character's equipment, mercenaries
- modifiers (prefixes, suffixes), automods
- cube recipes
- ethereal item find
- item dimensions (width, height), optional descriptions, looks
- data validation (serializers, validators on models)
- better readme