This project is a Vite + React static dashboard that is installable as a Progressive Web App (PWA).
- Web App Manifest with icons (including maskable) and standalone display
- Service Worker caching app shell + runtime caching of GET requests
- Offline fallback to cached content when navigation fails
-
Install dependencies and run the dev server:
pnpm install pnpm dev
-
Open Chrome at
http://localhost:3000. -
Open DevTools > Application > Manifest to verify fields.
-
You should see an install icon in Chrome if eligible.
-
Click the install icon and confirm installation — the app should open in a standalone window.
- Uses cache-first with background population for GET requests.
- Provides a cached fallback if navigation fails.
After modifying static assets or the service worker:
- Increment the
CACHE_NAMEconstant. - Rebuild and redeploy.
- Users will get the new version on the next visit (during the activate phase).
pnpm buildDeploy the contents of dist/ behind an HTTPS origin (required for PWA installation and service worker registration).
| Issue | Fix |
|---|---|
| App opens in browser tab after install | Check display: standalone and start_url in the manifest. |
- Smarter asset precaching (Workbox)
- Granular runtime cache strategies per resource type
- Background sync for queued admin actions
- Push notifications (requires server integration)
Happy hacking! 🚀
Would you like me to add badges (like “Built with Vite” or “PWA Ready”) at the top for a more polished README?