Cobudget is a web app helping people collaborate on budgets. For more about the project as a whole, check out the top-level repo. This repo is the user interface component.
Install node and npm: https://github.com/joyent/node/wiki/Installation
git clone https://github.com/open-app/cobudget-ui
cd cobudget-ui
npm install
To configure production
and other environments, copy config/development.coffee
to config/production.coffee
and change properties as appropriate. If you need to access other environment variables, use process.env.VAR_NAME
, as the config is simply coffeescript.
Build on watch and start livereload server:
npm run develop
Build once and start static server:
npm start
Stage (push to gh-pages)
NODE_ENV=production npm run stage
Deploy (push to dokku)
git remote add deploy [email protected]:app
NODE_ENV=production npm run deploy
To setup e2e (integration) tests, in another terminal run npm run webdriver-update
to install Selenium and npm run webdriver-start
to start the Selenium serer. The UI server must be running (npm run develop
or npm start
)while performing e2e tests.
Run all tests
npm test
Run only spec tests
npm run test-spec
Run only e2e tests
npm run test-e2e