Beer Match is a web-based visualization project powered by data from Untapped (http://untappd.com). This code includes both server-side (based on NodeJS) and client-side. Beer Match is not affiliated or endorsed by Untapped.
0.0.1
First obtain Untapped credentials here.
You need to install necessary packages
$ npm install
Open settings.local enter the Untapped credentials and Mapbox access key you've obtianed earlier.
{
"clientId": "<client id>",
"clientSecret": "<client secret>"
}
Then save it as a JSON file.
$ cp settings.local settings.json
Less is needed. If you don't have Less installed yet, please install this first:
$ sudo npm install -g less
Then
$ lessc less/style.less public/style/style.css
Bower is needed. If you don't have Bower installed yet, please install this first:
$ sudo npm install -g bower
Then go to the public folder and install necessary libraries.
$ cd public
$ bower install d3 moment-timezone moment pathjs underscore jquery chroma-js textures
If you see errors, change the sockeio address to number ip address in public/script/main.js
var socket = io.connect('http://localhost:8080');
to below (i.e., 100.100.100.100)
var socket = io.connect('http://100.100.100.100:8080');
Beer Match works on Forever installed globally. If you don't have Forever installed yet and wish to install locally, do this first:
$ sudo npm install forever
Then go to the main folder
$ cd ..
$ forever start app.js
If you want to stop the server, do
$ forever stop 0
Test on your browser.