Skip to content

Instantly share code, notes, and snippets.

View server.js
var express = require('express');
var fs = require('fs');
var app = express();
var bodyParser = require("body-parser");
var server = require('http').Server(app);
var mongo = require('mongodb').MongoClient;
var ObjectId = require('mongodb').ObjectID;
var io = require('socket.io').listen(server);
var nodemailer = require('nodemailer');
View gist:4b505421512b1f79ea96
var utils = require('./utils'),
glob = require('glob'),
async = require('async'),
fileLib = require("node-fs"),
path = require('path'),
_ = require('lodash'),
fs = require('fs'),
mkdirp = require('mkdirp');
var basePath = process.cwd(),
@brynnb
brynnb / installbqdev.sh
Created Sep 17, 2012
Installing BrowserQuest (Dev Build) on fresh EC2 Install (Ubuntu 12 x64)
View installbqdev.sh
apt-get update
apt-get upgrade
apt-get install -y curl build-essential pkg-config bison git npm nodejs
git clone https://github.com/browserquest/BrowserQuest.git
npm install underscore log bison websocket websocket-server sanitizer memcache
cd BrowserQuest/client
npm install -g http-server
@brynnb
brynnb / installbq.sh
Created Sep 16, 2012
Installing BrowserQuest on fresh EC2 Install (Ubuntu 12 x64)
View installbq.sh
apt-get update
apt-get upgrade
apt-get install -y curl build-essential pkg-config bison git npm nodejs
git clone https://github.com/brynnb/BrowserQuest.git
npm install underscore log bison websocket websocket-server sanitizer memcache
cd BrowserQuest/client
npm install -g http-server
@brynnb
brynnb / missingBQmusic.sh
Created Sep 16, 2012
Pulling in the missing music files for BrowserQuest
View missingBQmusic.sh
wget http://browserquest.mozilla.org/audio/music/village.mp3
wget http://browserquest.mozilla.org/audio/music/beach.mp3
wget http://browserquest.mozilla.org/audio/music/forest.mp3
wget http://browserquest.mozilla.org/audio/music/cave.mp3
wget http://browserquest.mozilla.org/audio/music/desert.mp3
wget http://browserquest.mozilla.org/audio/music/lavaland.mp3
wget http://browserquest.mozilla.org/audio/music/boss.mp3
wget http://browserquest.mozilla.org/audio/music/village.ogg
wget http://browserquest.mozilla.org/audio/music/beach.ogg
wget http://browserquest.mozilla.org/audio/music/forest.ogg
You can’t perform that action at this time.