Server for the HeroStats.io API - serves Dota 2 hero attribute data in a simple JSON format
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
lib
routes
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
README.md
hsapi.js
package.json

README.md

HeroStats API

Build Status

This repository holds the app that serves herostats data at http://api.herostats.io

We will be updating this repository in the coming months with v2 of the HeroStats API. Version 1 will remain fully functional, and v2 will be namespaced, no worries.

config.json

To configure HeroStats API, add a config.json to the root directory with the following structure:

{
  "host": "HOSTNAME [probably localhost]",
  "mysqlUser": "YOUR_MYSQL_USERNAME",
  "mysqlPassword": "YOUR_MYSQL_PASSWORD",
  "mysqlDatabase": "DATABASE_NAME",
  "mysqlTable": "DEFAULT_TABLE",
  "patchName": "DEFAULT_PATCHNAME",
  "port": PORT_TO_RUN_ON
}