X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=afb-client%2FREADME.md;h=2eb0f6f7353e5e0f3383c18ba88c30cf0438b02f;hb=e6d12f74be543056a439259b61ba40a9d0adcf5c;hp=8216a252bd473d4a206a32b71a71bebc9633af6c;hpb=f4ec97c2f12a03fc5e6d29c6226c980b5c00cc8d;p=src%2Fapp-framework-demo.git diff --git a/afb-client/README.md b/afb-client/README.md index 8216a25..2eb0f6f 100644 --- a/afb-client/README.md +++ b/afb-client/README.md @@ -1,14 +1,19 @@ +### Sample client application for Application Framework Binder + +![AFB-Client screenshot](http://iot.bzh/images/afb-client.jpg) + +_(Application Framework Binder can be found on https://github.com/iotbzh/afb-daemon)_ ## Installation Install HTML5 development toolchain on your host 1. Check out this repository - git clone https://github.com/iotbzh/afb-client-sample.git + git clone https://github.com/iotbzh/afb-client.git 2) Install NodeJs [not used on target] - zypper install nodejs - yum install nodejs + zypper install nodejs + yum install nodejs 3) Install building tools [bower, gulp, ....] npm install # this install all development tool chain dependencies @@ -18,7 +23,7 @@ Install HTML5 development toolchain on your host install [livereload Chrome extension](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei) -### Overload ./etc/Defaults.js with '.noderc.js' +### Overload ./app/etc/AppDefaults.js with '.noderc.js' var config= { APPNAME : 'AFBclient', // AppName is use as main Angular Module name FRONTEND: "Frontend", // HTML5 frontend [no leading ./] @@ -30,9 +35,9 @@ Install HTML5 development toolchain on your host }; module.exports = config; - WARNING: in current version Frontend/services/ConfigApp.js is not updated automatically + WARNING: in current version Frontend/services/AppConfig.js is not updated automatically you should make sure than your backend config fit with your frontend config. - Note: FCS version should have ConfigApp.js configurated automatically from GULP, but this is for "tomorrow" + Note: FCS version should have AppConfig.js configurated automatically from GULP, but this is for "tomorrow" ### Build project gulp help @@ -57,8 +62,11 @@ Install HTML5 development toolchain on your host ### Move to Target cd $MYWORKSPACE/afb-client gulp build-app-prod - scp -r ./dist.pro/* user@mytarget:/rootdir/apfDaemon + scp -r ./dist.prod/* user@mytarget:/rootdir/afb-client + ssh user@mytarget "afb-daemon --port=3001 --token='' --rootdir=/rootdir/afb-client" + http://mytarget:3001/opa +### Directory structure /AppClient | |---- package.json @@ -95,4 +103,3 @@ Install HTML5 development toolchain on your host |---- (/dist.dev) |---- (/dist.prod) - \ No newline at end of file