1.0.0 • Published 5 years ago

launcher_v2 v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Launcher

Deployment

  1. go to relevant job (jenkins).
  2. pick the relevant asset name from jenkins output.
  3. update config service database to serve the relevant asset.
  4. go to Grafana and monitor

How to start

  1. clone launcher project
  2. add your project embed code to demo.html
  3. run npm start in your project (in order to get assets URL with HMR)
  4. add your assets to db.js under assets_config (duplicate one of the objects within the array and change the URL to HMR url from your project, example: https://github.com/SpotIM/header_demo_package#dev)
  5. npm run start and open console to see the launcher (window http://localhost:8080 will launch)
  6. npm run mock starts json-server mock.

your app should be rendered into the page and work with HMR.

Mock server

Config Route Example: http://localhost:3000/config/v1.0.0/spot_XFDASDF22/default/conversation,recirculation,init Data Route Example: http://localhost:3000/data/v1.0.0/spot_XFDASDF22/default/conversation,recirculation

Test

npm test witch watch all files:

npm test -- --watchAll

Q&A

Q: how to load production files in dev env? A: run npm run build:production, Than change the DB mock server data from http://localhost:8080/dist/vendor-bundle.js url to http://localhost:8080/vendor-bundle.js (i.e without the dist in path).