npm i
npm run {dev|prod}
./gh-pages-deploy.sh
To launch locally, you must build app with npm run prod
and put files from ./dist
directory to the NGINX - or use python simple HTTP server.
Platform host is defined in ./src/config.js
. If you want to use platform, other than hardcoded in code without redeploy, just load webpage with URL param platform
, e.g.:
http://semiot.ru/almazov-temperature/?platform=test.semiot.ru
This demo assume that platform work on HTTPS. Do not forget to authorize insecure platform's HTTPS cert in neighbor tab.
Also:
- If you want base URL other, than
/almazov-temperature/
(e.g./
), edit it in./src/config.js
before assembling. - Because of current limitations, provided by cookie-based authentication, platform must allow user to transfer credentials through different domains. Learn more about CORS