Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One Good Choice

A daily habit tracker built on one idea: you only need one win a day. No streaks, no counts, no guilt for a missed day — just a map of what you chose, day by day.

All data lives in this browser's localStorage. Nothing is sent anywhere — no backend, no accounts, no network calls. That also means it's tied to one browser on one device: clearing site data, using a different browser, or going incognito will reset it.

Run it locally

npm install
npm run dev

Opens at http://localhost:5173.

Deploy to GitHub Pages (same pattern as Ledger / Project Draw)

  1. Push this folder to a new public GitHub repo (public is fine — there's no sensitive data in the code itself, only in your browser's local storage).
  2. Open vite.config.js and set base to match your repo name exactly, e.g.:
    base: "/one-good-choice/",
  3. Install the deploy helper and build:
    npm install
    npm run build
    npm run deploy
    This pushes the dist folder to a gh-pages branch.
  4. In the repo's Settings → Pages, set the source to the gh-pages branch.
  5. Your app will be live at https://<your-username>.github.io/one-good-choice/.

Notes

  • Built with Vite + React + Tailwind (via CDN, no build config needed) + lucide-react icons.
  • Habit data structure: localStorage["ogc_habits"] (array of habits) and localStorage["ogc_entries"] (date → array of habit IDs checked that day).
  • Archiving a habit hides it from the daily list but keeps its history and color intact on the map — nothing is ever deleted automatically.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages