Giter VIP home page Giter VIP logo

buddyup's Introduction

buddyup-ui

Real-time Firefox OS Support

Development Workflow

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.

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.

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.

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

Integration

You need to follow the same procedure as for unit tests.

$ ./scripts/fetch-gaia.sh
$ ./scripts/run-integration-tests-server.sh

And in another shell,

$ ./scripts/run-integration-tests.sh

buddyup's People

Contributors

rik avatar rehandalal avatar sole avatar mythmon avatar adamkalis avatar douglassherk avatar johanlorenzo avatar mattdeveloper avatar tofumatt avatar mrakestraw13 avatar

Watchers

James Cloos avatar 王双 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.