Doc
[src/app-framework-demo.git] / afb-client / README.md
index e31390e..8216a25 100644 (file)
@@ -3,19 +3,19 @@
 
 Install HTML5 development toolchain on your host
 
-1. Check out this repository
-   git clone https://github.com/iotbzh/afb-client-sample.git
+    1. Check out this repository
+       git clone https://github.com/iotbzh/afb-client-sample.git
 
-2) Install NodeJs [not used on target] 
-    zypper install nodejs
-    yum install nodejs
+    2) Install NodeJs [not used on target] 
+        zypper install nodejs
+        yum install nodejs
 
-3) Install building tools [bower, gulp, ....]
-   npm install # this install all development tool chain dependencies
-   sudo npm install --global gulp  # this is not mandatory but it will make your live simpler
+    3) Install building tools [bower, gulp, ....]
+       npm install # this install all development tool chain dependencies
+       sudo npm install --global gulp  # this is not mandatory but it will make your live simpler
 
-4. For livereload functionality [automatic refresh of HTML/CSS]
-   install [livereload Chrome extension](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei)
+    4. For livereload functionality [automatic refresh of HTML/CSS]
+       install [livereload Chrome extension](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei)
 
 
 ### Overload ./etc/Defaults.js with '.noderc.js'
@@ -40,13 +40,16 @@ Install HTML5 development toolchain on your host
     gulp watch-dev 
     http://localhost:3001/opa  /* debug mock api base on Backend/RestApi */
 
-### Test with Application server binder  [you may safely run gulp 'watch-dev' + 'afb-daemon' simultaneously]
-    export MYWORKSPACE=$HOME/Workspace
-    $MYWORKSPACE/afb-daemon/build/afb-daemon --port=1234 --verbose --token=123456789 --rootdir=$MYWORKSPACE/afb-client/dist.dev
-    http://localhost:1234/opa
+### Test with Application server binder
+
+    # Start AppFramework Binder
+        export MYWORKSPACE=$HOME/Workspace
+        $MYWORKSPACE/afb-daemon/build/afb-daemon --port=1234 --verbose --token=123456789 --rootdir=$MYWORKSPACE/afb-client/dist.dev
+
+    Point your browser onto: http://localhost:1234/opa
 
     Note: 
-      - do not forget "/opa" that should match with your config.URLBASE
+      - do not forget '/opa' that should match with your config.URLBASE
       - if you change --token=xxxx do not forget to update ./Frontend/pages/HomeModules.js
       - Force HTML/OPA reload with F5 after each HTML5/OPA update or new pages may not be loaded. 
       - When reloading HTML/OPA with F5 do not forget that your initial token wont be accepted anymore. You should either restart to clean existing session or cleanup AJB_session cookie.