Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Ambari Web Frontend Development Environment

  • Application Assembler: Brunch

We use Brunch as the client-side application assembler: http://brunch.io/
Brunch can :Generate generate an application skeleton that is well structured with common client-side libraries (Backbone.js/Ember.js, jQuery, JavaScript/CoffeeScript, Stylus/LESS, etc)
. Build and deploy automatically in the background as you modify the source files.
This lets you break up the application into a number of JS files for code organization and reuse without worrying about runtime load performance.
For QA/production deployment, we can turn on JavaScript/CSS minification for fast application loading.
Run automated tests.
Run a Node.js-based web server with a single command so that you can easily run the application from the application root directory without any special configuration.

Install Node.js from http://nodejs.org/.
We have created a Brunch-based application and checked it into Github. To check out the project from the Github repository, run:

Code Block

git

...

 clone  git://git.apache.org/ambari.git
cd ambari-web

...


sudo npm install -g brunch

...


npm install

To run the web server (and to enable continuous build/deploy), run:

Code Block

brunch watch --server

Or use the shorthand: brunch w --s

...