This project is to implement and demonstrate service workers with reactjs
using create-react-app v2
.
It uses workbox
under the hood to implement different service worker strategies.
To play with it, open public/custom-service-worker.js
and try a different workbox strategy.
Developed by following instructions at https://medium.freecodecamp.org/how-to-build-a-custom-pwa-with-workbox-in-create-react-app-be580686cf73
Start a dummy server
cd static-tools
npx json-server --watch todos.json --port 8000
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.