Emergency safety app for Nigeria
# SafeAlert NG - PWA Deployment Package
## π¦ Contents
```
safealert-deploy/
βββ index.html # Main app (PWA-enabled)
βββ manifest.json # PWA manifest
βββ service-worker.js # Offline support & caching
βββ icons/ # App icons (generate PNGs)
β βββ icon.svg # Source SVG
β βββ README.md # Icon generation guide
βββ README.md # This file
```
## π Quick Deploy
### Option A: Netlify (Easiest)
1. Go to
app.netlify.com
2. Drag this entire folder
3. Done! β
### Option B: Vercel
1. Go to
vercel.com
2. Sign in with GitHub/Google
3. Click "Add New" β "Project" β "Upload"
4. Drop this folder
5. Click "Deploy"
6. Done! β
### Option C: GitHub Pages
1. Create new repo at
github.com
2. Upload all files
3. Go to Settings β Pages
4. Select "main" branch
5. Done! β
## β οΈ Before Deploying
### Generate Icons (Required)
The PWA needs PNG icons. Generate them:
1. Go to
realfavicongenerator.net
2. Upload `icons/icon.svg`
3. Download the package
4. Extract PNGs to `icons/` folder
Required icons:
- icon-192.png (Android)
- icon-512.png (Android)
- icon-180.png (iOS)
- favicon.ico
## π§ͺ Testing Your PWA
After deployment:
1. Open your URL in Chrome
2. Press F12 (DevTools)
3. Go to "Application" tab
4. Check:
- β
Manifest loaded
- β
Service Worker registered
- β
Icons loading
5. Run Lighthouse PWA audit
## π± Installing the App
### Android
- Visit your URL in Chrome
- Tap "Add to Home Screen" banner
- Or: Menu β "Install app"
### iOS
- Visit your URL in Safari
- Tap Share button
- Tap "Add to Home Screen"
## π Your Deployed URL
After deploying, your app will be at:
- Netlify:
https://[random-name].netlify.app
- Vercel:
https://[project-name].vercel.app
- GitHub Pages:
https://[username].
github.io]
## π Support
This is a demo/prototype. For production:
- Add real backend API
- Implement user authentication
- Connect to emergency services
- Add real-time location tracking
--- β¦