/buddyup

The UI repo for the buddy-up realtime support FirefoxOS app

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

buddyup-ui

The UI repo for the buddy-up realtime support FirefoxOS app

Development Workflow

First, let's install the required dependencies. From the command line, run:

npm install
# https://github.com/gruntjs/grunt-cli#grunt-cli-
npm install -g grunt-cli

Once the above completes, run:

grunt

This will precompile the nunjucks templates, start up the server, and start watching for changes to either app.js or any of the templates in app/views/. If any of the templates changes, it will auto-reload them.

To access the app via a browser:

http://127.0.0.1:8000/app/index.html

To test on an real device, use the WebIDE built into Firefox (https://developer.mozilla.org/en-US/docs/Tools/WebIDE) NOTE: You still need to run grunt prior to launching the WebIDE.

Tests

To run unit tests, we use the Gaia infrastructure.

You need to fetch gaia and run the test server

./scripts/fetch-gaia.sh
./scripts/run-unit-test-server.sh

And in another shell,

./scripts/run-unit-tests.sh