diff --git a/README.md b/README.md index 7149a68..551c6c8 100644 --- a/README.md +++ b/README.md @@ -178,13 +178,24 @@ Or open it in your browser: ### Update the app Make code changes... -Do not forget to change the cache version + +Run the live update server locally +```bash +npm run dev +``` +#### Test the PWA locally +Open it in your browser: +[http://localhost:8080/](http://localhost:8080/) + + +When done, do not forget to update the cache version in the `service-worker.js` ```bash ver=$(grep -oP "CACHE_VERSION = 'nexus-timer-cache-v\K[0-9]+" public/service-worker.js) sed -i "s/nexus-timer-cache-v$ver/nexus-timer-cache-v$((ver+1))/" public/service-worker.js ``` -Commit and push the code changes +Stage changes, commit and push ```bash +git add . git commit -m 'fixed visuals' git push ```