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
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 /]
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 /]
- WARNING: in current version Frontend/services/ConfigApp.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"
+ 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.
# Start AppFramework Binder
export MYWORKSPACE=$HOME/Workspace
$MYWORKSPACE/afb-daemon/build/afb-daemon --port=1234 --verbose --token=123456789 --rootdir=$MYWORKSPACE/afb-client/dist.dev
# Start AppFramework Binder
export MYWORKSPACE=$HOME/Workspace
$MYWORKSPACE/afb-daemon/build/afb-daemon --port=1234 --verbose --token=123456789 --rootdir=$MYWORKSPACE/afb-client/dist.dev
Note:
- 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.
Note:
- 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.
+ - 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
+ + cleanup AJB_session cookie
+ + start an anonymous web page to get a fresh and clean environment.
- 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