An open API service indexing awesome lists of open source software.

https://github.com/kxxoling/dota2_badges

Dota2 badges
https://github.com/kxxoling/dota2_badges

badge django dota2

Last synced: 2 months ago
JSON representation

Dota2 badges

Awesome Lists containing this project

README

          

============
Dota2 badges
============

This is a project built on Django and Opendota API, and uses Redis as data cache.

Install
=======

It's strongly suggested to use ``pipenv`` to install and manage the Python dependencies!

pipenv install && pipenv shell

And also, you need to have Redis installed and started, assuming it's running at ``redis://localhost:6379``

Running
=======

Now you can run ``./manage.py runserver`` and open link like ``http://localhost:8000/121230511/mmr.svg`` to get your MMR badge:

.. image:: https://cdn.rawgit.com/kxxoling/dota2_badges/master/mmr.svg

Online demo:

- Solo MMR:
.. image:: http://dota.home.windrunner.me:14000/121230511/mmr/solo.svg
- Team MMR:
.. image:: http://dota.home.windrunner.me:14000/121230511/mmr/team.svg
- Estimated MMR:
.. image:: http://dota.home.windrunner.me:14000/121230511/mmr/estimate.svg