1 # Template Hybrid HTML5 Application for Application Framework Binder
5 Install HTML5 development toolchain on your host
8 $ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
9 $ sudo apt-get install nodejs
10 $ sudo npm install --global gulp
14 Then install NodeJS dependencies
17 $ cd html5 # or the project directory
21 ## Overload ./app/etc/AppDefaults.js with '.noderc.js'
25 APPNAME : 'xxxxxx-hybrid-html5', // AppName is use as main Angular Module name
26 FRONTEND: "Frontend", // HTML5 frontend [no leading ./]
27 BACKEND : "Backend", // NodeJS Rest API [no leading ./]
28 URLBASE : '/opa/', // HTML basedir when running in production [should end with a /]
29 APIBASE : '/api/', // Api url base dir [should end with a /]
31 module.exports = config;
34 WARNING: in current development version Frontend/services/AppConfig.js is not updated automatically
35 you should manually assert that backend config is in sync with frontend config.
40 $ mkdir build && cd build
45 This should give a .wgt file ready to be deployed on the target.
47 ## Deploy application package
52 $ scp *.wgt root@$BOARDIP:~/
54 # afm-util install xxxxxx-hybrid-html5.wgt
55 # afm-util start xxxxxx-hybrid-html5@0.1