Skip to content

Diablo 2 Resurrected Drop Tracker API built with Django and Django Rest Framework

Notifications You must be signed in to change notification settings

Alschn/d2r-drop-tracker-api

Repository files navigation

D2R Drop Tracker API

Tools, libraries, frameworks:

This setup has been tested with Python 3.9 and Django 4.0.3.

Backend

Development setup:

BattleNet API

Required for user authentication with BattleNet account.

  1. Go to https://develop.battle.net/access/ and log into your BattleNet account
  2. Create new API client
  3. Provide client name, redirect url, intended use
  4. Save Client ID and Client Secret and do not share them with anyone
  5. Create .env file in projects directory with content:
BNET_CLIENT_ID=your_client_id_from_bnet_api
BNET_SECRET=your_secret_from_bnet_api

Project setup

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

Running unit tests and coverage

Run tests using Coverage

coverage run manage.py test

Get report from coverage:

coverage report -m

Todos

  • 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

About

Diablo 2 Resurrected Drop Tracker API built with Django and Django Rest Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published