Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 2.56 KB

SETUP.md

File metadata and controls

65 lines (51 loc) · 2.56 KB

RD Collection Tracker — Hosting on GitHub Pages (free, forever)

This turns the app into a real installable PWA: a proper home-screen icon, a splash-style launch, and offline support after the first load — at zero ongoing cost.

What's in this folder

  • index.html — the app itself
  • manifest.json — tells the phone this is an installable app (name, icon, colors)
  • service-worker.js — caches the app so it works without internet after first load
  • icons/ — app icons

No customer data lives in any of these files — all the data your mother enters stays only in her phone's browser storage. So even though the GitHub Pages URL is technically public, there's nothing private in the code itself.

One-time setup (10 minutes)

  1. Go to https://github.com/new and create a new repository.

    • Name it anything, e.g. rd-collection-tracker
    • Keep it Public (Pages on a free GitHub account requires a public repo)
    • Don't add a README — keep it empty for now
  2. On your computer, in this folder, run:

    git init
    git add .
    git commit -m "RD collection tracker PWA"
    git branch -M main
    git remote add origin https://github.com/YOUR_USERNAME/rd-collection-tracker.git
    git push -u origin main
  3. On GitHub, open the repo → Settings → Pages.

    • Under "Build and deployment", set Source to "Deploy from a branch"
    • Branch: main, folder: / (root)
    • Save
  4. Wait about a minute, then refresh that Pages settings page — it'll show your live URL, something like: https://YOUR_USERNAME.github.io/rd-collection-tracker/

Installing it on your mother's phone

  1. Open that URL in Chrome on her phone.
  2. Chrome should show an "Install app" / "Add to Home screen" prompt automatically (since it's now a real PWA). If it doesn't pop up, tap the ⋮ menu → Add to Home screen / Install app.
  3. It'll appear on her home screen with the RD icon, opens full-screen (no browser bar), and keeps working even with patchy internet.

Updating it later

If you change index.html in the future:

  1. Open service-worker.js and bump the version, e.g. change rd-collect-v1 to rd-collect-v2.
  2. Commit and push again.
  3. Phones will pick up the new version next time they're online — old cached version keeps working in the meantime, so nothing breaks.

Data backups still matter

Hosting doesn't change this: all her collection data lives only in that phone's local storage. Keep using More → Backup data regularly and save that file somewhere safe (WhatsApp to yourself, Google Drive, etc.).