Basic TangoJS application template.
Due to utilization of bleeding-edge web standards, browser support is limited. Your browser should support:
- ECMAScript 2015
- Web Components
- CSS Grid Layout
Latest versions of Mozilla Firefox and Chromium (including derivatives) will work.
In Firefox, you have to enter about:config in the address bar, and toggle
following flags:
dom.webcomponents.enabled,layout.css.grid.enabled.
In Chromium, you have to enter chrome://flags/ in address bar, and enable
Experimental Web Platform features.
-
Make sure you have Node.js installed.
-
Clone this project:
$ git clone https://github.com/tangojs/tangojs-webapp-template.git && cd tangojs-webapp-template/
-
Alter the
package.jsonfile - you probably want to change thename,authoranddescriptionfields. -
Pull the dependencies:
$ npm install
Note that this also installs
devDependencies. If you want a bare minimum without e.g. a http-server, then add the--productionflag. -
TangoJS has to be accessed from a web server (components are loaded via AJAX calls). You already have one, assuming you installed
devDependencies. Just start it and visitlocalhost:8080in your browser:$ npm run server -
Start building your app by editing the
index.htmlfile in your editor of choice. Remember to check the TangoJS API Docs and the TangoJS Web Components Specs. -
Learn more about connectors when you are ready for communication with real TANGO infrastructure.