Development Environment.
-
REQUIREMENTS
Install NodeJS
Install Grunt Command Line Interface (CLI)
-
INSTALLATION
npm install -
COMMANDS
Development - Start Server (port 8080):
node server.jsRun Grunt watch:
gruntCompile Coffee:
grunt coffeeCompile Stylus
grunt stylus -
FOLDER STRUCTURE
CoffeeScript files:
/CSCompiled into JS (individually and all in main.js):
/JSStylus files:
/StylCompiled into CSS:
/CSSImages:
/Assets -
COFFEESCRIPT FILES
Initial intro to the site and setup of the experience:
/CS/setup.coffeeVisuals Engine controlling the Animations and graphics:
/CS/VisualsEngine.coffeeAudio Analytics using WebAudio API to listen to and analyse the music, and fire events. Would love suggestions on how to make this more accurate and advanced.
/CS/AudioAnalysisEngine.coffeeControllers for the Keyboard input and the Mobile Device.
TabletController.coffeeis desktop-client side, and manages the key generation, and listening to / mapping events from the mobile device./CS/KeyboardController.coffee /CS/TabletController.coffeeEvents (using Signals.js) defined:
/CS/Events.coffeeMobile Device Controller logic & Sockets stuff:
/CS/MobileController/MobileController.coffee -
SERVER (Node.js Express)
Can be found in
/server.js -
NOTES
npm-shrinkwrap.json,Procfileandbounscale(required inserver.js) are to do with the deployment to Heroku, and can be disregarded if doing things a different way.