This gem contains the client-side code that runs on Concerto display machines. The latest version of the gem can be found on RubyGems.
The concerto-frontend gem should be installed by default with the latest Concerto releases. If there seems to be anything wrong, follow these steps to install the gem.
RAILS_ENV=production bundle exec rake assets:precompile
in your usr/share/concerto directory and then restart your webserver.The concerto-frontend uses web components and the latest Polymer 1.0 library. External javascripts should be placed in the vendor/assets/javascripts directory and required in the application.js.
npm install
and bower install
to install the necessary tools and librariesThe quickest method of development is to run the frontend without core Concerto. The frontend uses data in the "test" directory as a substitute for any screen and content data. Follow these steps to begin developing:
npm install polyserve
to install a simple web server to run our web component frontendpolyserve
while in the project's root directoryThis method allows developers to run live changes through core Concerto. Follow these steps to begin developing:
grunt watch
(add --verbose for extra debugging details) task within this project's root directory. This will automatically run the vulcanize task whenever changes are made to the frontend HOWEVER you will need to change the vulcanized output see building, step 1 below.The grunt tasks will update the concatenated Polymer web components file and the changes should be reflected when previewing a screen under core Concerto.
The following notes are kept for any developers on the Concerto team that need to push updates to RubyGems:
grunt
so it performs the default actions of vulcanizing the vulcanize_this.html file, strips the extra html from the vulcanized output file, and copies external js files to the vendor/assets/javascripts directory.gem build concerto_frontend.gemspec
gem push concerto_frontend-X.X.X.gem
and add to core Concerto as concerto_frontend with the latest version number