Giter Club home page Giter Club logo

esdb's Introduction

Introduction

ESDB is the API server for GGTracker. It is also involved in replay processing.

The other codebases used in GGTracker are:

Requirements

On Mac OSX, you can use homebrew as package manager: http://mxcl.github.com/homebrew/

Installation and setup

  • Run Bundler (bundle)
  • Copy and adjust database configuration (cp config/database.yml.example config/database.yml)
  • Create the database esdb needs, and the test database (mysql -u root and then create database esdb_development; create database esdb_test and then quit)
  • Copy S3 configuration and put your AWS credentials and bucket names in it (cp config/s3.yml.example config/s3.yml)
  • Copy fog configuration and put your AWS credentials and bucket names in it (cp config/fog.rb.example config/fog.rb)
  • Copy and adjust redis configuration (cp config/redis.yml.example config/redis.yml)
  • Copy and adjust esdb configuration (cp config/esdb.yml.example config/esdb.yml)
  • Copy tokens configuration (cp config/tokens.yml.example config/tokens.yml)
  • Run migrations: bundle exec sequel -m db/migrations -e development config/database.yml
  • Import the data needed for Spending Skill: cat db/replays_sq_skill_stat.sql | mysql -u root -D esdb_development
  • Set up an API identity for the ggtracker web server: cat db/ggtracker_provider.sql | mysql -u root -D esdb_development
  • Initialize the ggpyjobs submodule with rake py:init
  • Run migrations on test: bundle exec sequel -m db/migrations -e test config/database.yml
  • Verify your install with rspec bundle exec rspec

Starting

foreman start

Then open your browser to http://localhost:9292/ If you see "Hello World!" then the ESDB server is running, congrats!

Next try opening this URL: http://localhost:9292/api/v1/spending_skill/am/protoss If you get a bunch of JSON spending skill data, then it really is working.

Next is to try uploading a replay; for that, you'll need to install the ggtracker webserver on your dev box.

If you run into any problems, please let me know -- it's probably my fault and I'll be happy to help you out!

Testing

  • Run migrations on test: bundle exec sequel -m db/migrations -e test config/database.yml
  • bundle exec rspec

run a specific spec: bundle exec rspec spec/sc2_identity_spec.rb:91

Security

If you see any security problems, please let me know ASAP! Thx :)

I don't understand XXXX

Just ask, I'll add questions and answers to a FAQ here.

esdb's People

Contributors

dsjoerg avatar eric-hu avatar gravelweb avatar nickelsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.