By default vue app runs over port 8080. You can change the port to 8081 or some thing else inside docker by following steps below Open port 8081 for docker in docker-compose Run npm serve on port 8081In vue.config.js, change port to 8081 docker-compose.yml vue-config.js
Docker runs in a virtual environment so has its own network and ip management. To access server running inside docker in your browser you need to either bind the server to port 0.0.0.0 which is local host of your system or use docker ip. You can get docker ip using below What if servers running … Continue reading How to access server running inside docker?
Local storage can store string data only, what if you want to store an object? Answer to above question is, convert object into string using "JSON.stringify()" How to get object back from localStorage? You can get user back from localStorage and convert it back to object using "JSON.parse()"
Open launch.js and insert following If you see an error saying "Chrome not found", it might be unable to find chrome in your system because it is looking for "google-chrome" and you have probably "chromium" in your /usr/bin. To fix this error, create a link to chromium You can see the paths here
In this post I ll try to answer, what is service worker and how can we use it? What is Service Worker? Old browsers use only main thread to render web pages. Modern browsers now have two main threads available, one for rendering web pages and other running parallel in background. That second thread can … Continue reading What is Service Worker?