Collect and analyze game stats
To install dota-quantify on windows:
-
install mongodb
-
run mongo if it's not running via a service
- C:\mongodb\bin\mongod
-
clone the git repo
-
make sure your'e on the development branch
- git checkout develop
-
comment out unicorn from gemfile (because kgio won't run on windows)
-
install gems
- bundle install --without production
-
temporarily comment out the following in config\initializers\Dota.rb
- config.api_key = Figaro.env.steam_web_api_key
-
get a steam api key
-
run figaro install
- rails generate figaro:install
-
uncomment the line in Dota.rb
-
put the following in your new config\application.yml
- STEAM_WEB_API_KEY: 79ABCDEFYOURNEWAPIKEY
-
give ruby a SSL authority, otherwise trying to get a match will fail with a Figaro/SSL error
-
rails s
-
rake jobs:work
-
visit localhost:3000 or wherever you have the app running
-
try to get a match from dotabuff, using a URL like:
You can test calls to the dota API in your browser, eg:
The calls are documented here:
http://wiki.teamfortress.com/wiki/WebAPI
Also, here, with latest notes about bugs and changes and so forth: