Skip to content
Michael "Z" Goddard edited this page Feb 21, 2014 · 1 revision

Infrastructure

Dependencies and Tools

  • socket.io

  • cloak

  • express

  • backbone.js

  • grunt

  • AMD

  • jade

Testing

  • mocha with tdd interface
  • chai with assert interface
  • testem

Build Process

  • grunt

    1. test
    2. shell NODE_ENV=development node src
      Launch the root server for convenience.
  • grunt test

    1. lint
    2. testem ci
  • grunt prod

    1. test
    2. compile to /dist

Running the Server

The server uses the NODE_ENV environment variable idiom.

  • NODE_ENV=development node src instructs the server to run in development mode.
  • NODE_ENV=production node src instructs the server to run in production mode.

Folder Hierarchy

  • src Folder containing all source: Javascript, CSS superset, and templates.
    • activities Folder containing subfolders for activities.
      • cacao Folder containing source related to only cacao.
        • client Folder containing client side source.
          • styles CSS superset source for cacao.
          • templates Jade files for cacao.
          • *.js Javascript files for cacao.
          • main.js The client-side main js file.
        • server Folder containing server side source.
        • index.js convenience script for cacao server.
    • client Client side generic code.
    • server Server side generic code.
    • index.js convenience script for server.
  • Gruntfile.js
  • package.json

Whiteboard

images/00-03-infrastructure.jpg