diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-18 17:49:35 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:20 +0200 |
commit | a808486bae230c982a05980a0a28c00a43c05d3a (patch) | |
tree | 4e447c8c6622f3703a006da242885a0b1b60cece /templates/hybrid-html5/README.md | |
parent | 6daf741824b7c6e1c60b7a26fc91c454876f7392 (diff) |
Git repo can be used as submodules
Clean templates files as they are useless for usage in submodules into a project.
Change-Id: I24c71b64ab2b3a958494f3f190c014227a1da576
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'templates/hybrid-html5/README.md')
-rw-r--r-- | templates/hybrid-html5/README.md | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/templates/hybrid-html5/README.md b/templates/hybrid-html5/README.md deleted file mode 100644 index f9119a6..0000000 --- a/templates/hybrid-html5/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# Template Hybrid HTML5 Application for Application Framework Binder - -## Setup - -Install HTML5 development toolchain on your host - -``` -$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - -$ sudo apt-get install nodejs -$ sudo npm install --global gulp - -``` - -Then install NodeJS dependencies - -``` -$ cd html5 # or the project directory -$ npm install -``` - -## Overload ./app/etc/AppDefaults.js with '.noderc.js' - -``` - var config= { - APPNAME : 'xxxxxx-hybrid-html5', // AppName is use as main Angular Module name - FRONTEND: "Frontend", // HTML5 frontend [no leading ./] - BACKEND : "Backend", // NodeJS Rest API [no leading ./] - URLBASE : '/opa/', // HTML basedir when running in production [should end with a /] - APIBASE : '/api/', // Api url base dir [should end with a /] - }; - module.exports = config; -``` - -WARNING: in current development version Frontend/services/AppConfig.js is not updated automatically -you should manually assert that backend config is in sync with frontend config. - -## Build widget - -``` -$ mkdir build && cd build -$ cmake .. -$ make -``` - -This should give a .wgt file ready to be deployed on the target. - -## Deploy application package - -Run: - -``` -$ scp *.wgt root@$BOARDIP:~/ -$ ssh root@$BOARDIP -# afm-util install xxxxxx-hybrid-html5.wgt -# afm-util start xxxxxx-hybrid-html5@0.1 -``` - |