Install dependencies
sudo npm installInstall Gulp globally
sudo npm install gulp -gStart node server via Gulp
Gulp is used to build the client, start the server, and watch for file changes. The default Gulp task will do this all. Install the Chrome Plugin for Auto Reload
gulpOpen browser
localhost:8888
Start a MAMP server with MySQL on port 8889
Open phpMyAdmin
In the SQL tab paste the contents of
createDatabase.sqland hit "Go"Reload the navigation panel and verify that the
PongHacksDB has been createdCreate
key.jsin the/serverdirectory with the following contents:module.exports = { hc_auth_token_user: "XXXXXXXX-HipChat-User-API-Token", hc_auth_token_room: "XXXXXXXX-HipChat-Room-API-Token", db_user: "MySQL-User-Name", db_password: "MySQL-Password", db_port: "MySQL-Port" };Your personal token can be retrieved from your Razorfish Hipchat account
Parse the users from Razorfish hipchat server and populate the MySQL DB
node scripts/updateUsers.jsYou need a valid
/server/key.jsfile for this step to work.Verify that the
Usertable was created and populated in the DB on phpMyAdmin
Open Postman and import collection
postmanCollection.jsonCreate an environment with the following key values:
server localhost:8888 hipchatDomain hipchat.tor.razorfish.com auth_token XXXXXXXXX-PongHacksAPIkey personal_auth_token XXXXXXXXX-PersonalAPIkey
Add cron job to execute scripts/updateUsers-cron.sh at desired frequency
Ex:
0 */6 * * * /path/to/ponghacks/scripts/updateUsers-cron.sh