@@ -4,11 +4,14 @@ This 'ggtracker' repository is the web server for ggtracker, plus the
4
4
HTML/CSS/Javascript that makes the pretty pages pretty.
5
5
6
6
It 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.
8
8
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
12
15
13
16
14
17
### Requirements
@@ -20,7 +23,7 @@ and matches to the ESDB API, both of which are in other repos:
20
23
* juggernaut (npm install -g juggernaut, see https://github.com/maccman/juggernaut )
21
24
* MySQL
22
25
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/
24
27
25
28
26
29
### Basic installation and updating
@@ -32,6 +35,11 @@ On Mac OSX, I recommend using homebrew as package manager: http://mxcl.github.co
32
35
* Create the database ggtracker needs (` mysql -u root ` and then ` create database ggtracker_development; ` and then ` quit ` )
33
36
* Run migrations (` bundle exec rake db:migrate ` )
34
37
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
+
35
43
### Starting
36
44
37
45
` foreman start web `
@@ -40,11 +48,19 @@ And then go to http://localhost:3000/ in your browser.
40
48
41
49
Note: the first time you request a page, it will be slow while it compiles CSS, JS etc.
42
50
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:
44
54
45
55
` ESDB_HOST=api.ggtracker.com ESDB_MATCHBLOBS_BUCKET=gg2-matchblobs-prod foreman start web `
46
56
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.
48
64
49
65
50
66
### Testing
@@ -79,11 +95,3 @@ Start testacular: `/usr/local/share/npm/bin/testacular start`
79
95
This will launch a chrome window (you need chrome installed, of course) and automatically monitor specs for changes.
80
96
81
97
Run 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