PWA Build and Deployment
Same as the
UDTTReactProject (See
UDTTReactProject ).
Additional Notes
Note The PWA features require strict HTTPS certification, and the self-signed Certificate does not work in this scenario.
Please enable the HTTPS access of the App Server accordingly.
option 1.
[best practice]
Use a real SSL Certificate from public CA
option 2.
[for development]
Use a SaaS service like ngrok
option 3.
[dev/test only]
Stick to localhost for development or test only buy you may encounter errors to access the App from other device or App/domain in this case.
[optional] General steps to use ngrok in docker:
2 Pull the ngrok image from docker-hub
$ docker pull ngrok/ngrok:alpine
3 Sign up at ngrok and add the authtoken to the configuration file, such as:
# in ngrok.yml authtoken: 2IUIoODBiCr *** QHn7P89EneZaQig
4 Run ngrok image in docker
$ docker run --name ngrok-test -p 3030:4040 -it -v $(HOME)/ngrok.yml:/etc/ngrok.yml -e NGROK_CONFIG=/etc/ngrok.yml ngrok/ngrok:alpine http host.docker.internal:8080
5 Find the temp domain URL at console for test, for example: https://6f34-114-253-37-149.jp.ngrok.io
6 Launch the App in Google Chrome browser Please add parameter _pwa=1 at the url to enable the PWA featurehttps://6f34-114-253-37-149.jp.ngrok.io/UDTTServerProject/app/index.html? _pwa=1#/home
Go up to
This site works best with JavaScript enabled