First, let’s install the required dependencies. From the command line, run:
$ npm install
Once the above completes, run:
$ node_modules/.bin/grunt dev
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 reduce the amount of typing you have to do, you may consider putting
the node_modules/.bin directory on your PATH. Then you can simply use
grunt dev instead of specifying the full path.
You still need to run grunt prior to launching the WebIDE.
Localization
Localizations are not included by default, but are pulled from Verbatim
via Sumo. To download the translations, run
$ node_modules/.bin/grunt get_localization
If all goes well, you should have one js file in app/translations/ for
each supported locale. For example, the French localizations would be
stored in app/translations/fr.js.
Tests
Unit
To run unit tests, we use the Gaia infrastructure.
buddyup-ui
Real-time Firefox OS Support
Development Workflow
First, let’s install the required dependencies. From the command line, run:
Once the above completes, run:
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, open http://127.0.0.1:8000/app/index.html. To test on an real device, use the WebIDE built into Firefox.
Localization
Localizations are not included by default, but are pulled from Verbatim via Sumo. To download the translations, run
If all goes well, you should have one js file in
app/translations/for each supported locale. For example, the French localizations would be stored inapp/translations/fr.js.Tests
Unit
To run unit tests, we use the Gaia infrastructure.
You need to fetch Gaia and run the test server:
And in another shell:
Integration
You need to follow the same procedure as for unit tests.
And in another shell,