A full-featured Progressive Web App for tracking sports betting trades with offline support, installability, and data persistence.
- 📊 Track Trades: Record all your betting trades with detailed information
- 📈 Analytics Dashboard: Visual charts showing performance, win/loss ratios, and profit trends
- 💰 Bankroll Management: Monitor your bankroll growth over time
- 📅 Monthly View: Organize and analyze trades by month
- 💾 Data Persistence: All data saved locally using localStorage
- 📱 Installable: Add to home screen on mobile and desktop
- 🔌 Offline Support: Works without internet connection
- ⚡ Fast Loading: Service worker caching for instant load times
index.html- Main application file with PWA enhancementsmanifest.json- PWA manifest configurationsw.js- Service worker for offline functionalityicon-192.png- App icon (192x192)icon-512.png- App icon (512x512)
- Create a new GitHub repository
- Upload all files to the repository
- Go to Settings > Pages
- Select "main" branch and "/" root
- Click Save
- Your PWA will be live at
https://yourusername.github.io/repository-name
- Go to netlify.com
- Drag and drop the folder containing all files
- Your PWA will be deployed instantly with HTTPS
- Install Vercel CLI:
npm install -g vercel - Navigate to the folder:
cd /path/to/folder - Run:
vercel - Follow the prompts
- Install a local server:
npm install -g http-server
- Navigate to the folder and run:
http-server -p 8080
- Open
http://localhost:8080in your browser
Note: For PWA features (install prompt, service worker), you need:
- HTTPS connection (required for service workers)
- OR localhost (works for testing)
- Open the deployed URL in your browser
- Look for the "Add to Home Screen" prompt or
- Tap the share button and select "Add to Home Screen"
- Open the deployed URL
- Look for the install icon in the address bar or
- Click the "Install" button when prompted
- The app will open in its own window
Edit manifest.json:
"name": "Your App Name",
"short_name": "Short Name"Edit manifest.json:
"theme_color": "#your-color",
"background_color": "#your-color"Edit index.html, find:
let STARTING_BANKROLL = 1000;Replace icon-192.png and icon-512.png with your own icons
- All data is stored locally in the browser's localStorage
- Data persists between sessions
- Each browser/device has its own separate data
- To backup data: Use the export feature (if implemented) or copy localStorage manually
- ✅ Chrome/Edge (full support)
- ✅ Firefox (full support)
- ✅ Safari (full support with some limitations)
- ✅ Opera (full support)
- Caches app resources for offline use
- Enables fast load times
- Provides offline fallback
- Defines app appearance when installed
- Controls display mode (standalone)
- Specifies icons and colors
- Persistent data storage
- Survives browser restarts
- No server required
- All data stays on your device
- No data is sent to any server
- No tracking or analytics
- Completely private and secure
Install prompt not showing?
- Ensure you're using HTTPS or localhost
- Clear browser cache and reload
- Check browser console for errors
Service worker not working?
- HTTPS is required (except localhost)
- Check browser DevTools > Application > Service Workers
- Unregister old service workers and refresh
Data not persisting?
- Check if localStorage is enabled
- Ensure browser isn't in private/incognito mode
- Check browser storage quota
Free to use and modify as needed.
For issues or questions, check browser console for errors or ensure all files are properly deployed with HTTPS enabled.
Enjoy tracking your betting trades! 🎯💰