Development Environment.
-
REQUIREMENTS
Install NodeJS
Install Grunt Command Line Interface (CLI)
-
INSTALLATION
npm install
-
COMMANDS
Development - Start Server (port 8080):
node server.js
Run Grunt watch:
grunt
Compile Coffee:
grunt coffee
Compile Stylus
grunt stylus
-
FOLDER STRUCTURE
CoffeeScript files:
/CS
Compiled into JS (individually and all in main.js):
/JS
Stylus files:
/Styl
Compiled into CSS:
/CSS
Images:
/Assets
-
COFFEESCRIPT FILES
Initial intro to the site and setup of the experience:
/CS/setup.coffee
Visuals Engine controlling the Animations and graphics:
/CS/VisualsEngine.coffee
Audio 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.coffee
Controllers for the Keyboard input and the Mobile Device.
TabletController.coffee
is desktop-client side, and manages the key generation, and listening to / mapping events from the mobile device./CS/KeyboardController.coffee /CS/TabletController.coffee
Events (using Signals.js) defined:
/CS/Events.coffee
Mobile Device Controller logic & Sockets stuff:
/CS/MobileController/MobileController.coffee
-
SERVER (Node.js Express)
Can be found in
/server.js
-
NOTES
npm-shrinkwrap.json
,Procfile
andbounscale
(required inserver.js
) are to do with the deployment to Heroku, and can be disregarded if doing things a different way.