@@ -4,11 +4,14 @@ This 'ggtracker' repository is the web server for ggtracker, plus the
44HTML/CSS/Javascript that makes the pretty pages pretty.
55
66It does * not* do replay parsing, and delegates queries about players
7- and matches to the ESDB API, both of which are in other repos:
7+ and matches to the ESDB API.
88
9- * ESDB <-- the ruby API server, planning to make this public but it's not ready yet
10- * https://github.com/dsjoerg/ggpyjobs <-- the replay-parsing python server
11- * https://github.com/dsjoerg/gg <-- little gem for accessing ESDB
9+ The other repos involved in ggtracker are:
10+ * https://github.com/dsjoerg/esdb <-- the API server
11+ * https://github.com/dsjoerg/ggpyjobs <-- the replay-parsing python
12+ server, included by ESDB as a git submodule
13+ * https://github.com/dsjoerg/gg <-- little gem for accessing ESDB,
14+ used by this codebase
1215
1316
1417### Requirements
@@ -20,7 +23,7 @@ and matches to the ESDB API, both of which are in other repos:
2023 * juggernaut (npm install -g juggernaut, see https://github.com/maccman/juggernaut )
2124 * MySQL
2225
23- On Mac OSX, I recommend using homebrew as package manager: http://mxcl.github.com/homebrew/
26+ On Mac OSX, you can use homebrew as package manager: http://mxcl.github.com/homebrew/
2427
2528
2629### Basic installation and updating
@@ -32,6 +35,11 @@ On Mac OSX, I recommend using homebrew as package manager: http://mxcl.github.co
3235 * Create the database ggtracker needs (` mysql -u root ` and then ` create database ggtracker_development; ` and then ` quit ` )
3336 * Run migrations (` bundle exec rake db:migrate ` )
3437
38+ If you want to be able to upload replays, you'll need to have an
39+ Amazon S3 account. After setting that up, edit your config/s3.yml
40+ file accordingly.
41+
42+
3543### Starting
3644
3745` foreman start web `
@@ -40,11 +48,19 @@ And then go to http://localhost:3000/ in your browser.
4048
4149Note: the first time you request a page, it will be slow while it compiles CSS, JS etc.
4250
43- It'll work, but there will be no matches, no players. To make it more interesting, point your ggtracker at the production ESDB server like so:
51+ It'll work, but there will be no matches, no players. To make it more
52+ interesting, you can simply point your ggtracker at the production
53+ ESDB server like so:
4454
4555` ESDB_HOST=api.ggtracker.com ESDB_MATCHBLOBS_BUCKET=gg2-matchblobs-prod foreman start web `
4656
47- And then go to http://localhost:3000/matches in your browser. If you see recent matches, it's working!
57+ And then go to http://localhost:3000/matches in your browser. If you
58+ see recent matches, it's working!
59+
60+ If you are working on changes that involve replay processing as well,
61+ you can run your own local instance of ESDB; in the default
62+ development configuration, the ggtracker server and ESDB server will
63+ find each other correctly.
4864
4965
5066### Testing
@@ -79,11 +95,3 @@ Start testacular: `/usr/local/share/npm/bin/testacular start`
7995This will launch a chrome window (you need chrome installed, of course) and automatically monitor specs for changes.
8096
8197Run all tests: ` /usr/local/share/npm/bin/testacular run `
82-
83-
84- ### Keeping npm/node updated
85-
86- update/install npm: ` curl https://npmjs.org/install.sh | sh `
87- update/install node: ` brew install node `
88-
89- Note: node includes npm, which should be sufficient. If you installed npm before node, you may have to ` brew link -f node `
0 commit comments