This app uses the following:
- nodejs
- cairo
brew install cairo
- for spritesexport PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/X11/lib/pkgconfig
- still for spritesnpm install
- install all server-side depsbower install
- install all client-side deps
gulp dev
- broadcast dev server to localhost:9000. use livereload for automatic refresh.
Unit tests use karma + mocha.
karma start
- runs all tests in test/unit/**/*.coffee
E2E Tests use protractor + mocha.
gulp test:e2e
- runs all tests in test/e2e/**/*.coffee
This assumes the following, where ENV_NAME
is the name of the target NODE_ENV
(production
, staging
, etc.)
- An heroku app exists, and its git remote is named
ENV_NAME
- The heroku app has its
NODE_ENV
set toENV_NAME
(usingheroku config:set
) - there is an s3 bucket config defined in
config/ENV_NAME.yml
. seeconfig/production.yml.example
for an example configuration.
NODE_ENV=production gulp deploy
NODE_ENV=staging gulp deploy