1.0.0 • Published 6 years ago
launcher_v2 v1.0.0
Launcher
Deployment
- go to relevant job (jenkins).
- pick the relevant asset name from jenkins output.
- update config service database to serve the relevant asset.
- go to Grafana and monitor
How to start
- clone launcher project
- add your project embed code to
demo.html
- run
npm start
in your project (in order to get assets URL with HMR) - add your assets to
db.js
underassets_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) npm run start
and open console to see the launcher (windowhttp://localhost:8080
will launch)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).
1.0.0
6 years ago