SugarScout is a public beverage sugar tracker backed by Supabase. It does not require login: anyone can read, add, and delete beverage data.
- Create a Supabase project.
- Open SQL Editor and run
supabase-schema.sql. - Copy your project URL and anon public key from Project Settings -> API.
The anon key is safe for browser apps when Row Level Security policies are configured. Do not use the service role key in frontend code or GitHub Pages.
Create .env.local:
VITE_SUPABASE_URL="https://your-project.supabase.co"
VITE_SUPABASE_ANON_KEY="your-anon-key"Install dependencies and run:
npm install
npm run devPush the repository:
git remote add origin https://github.com/Minsecrus/SugarScout.git
git branch -M main
git push -u origin mainIn GitHub, add these repository secrets under Settings -> Secrets and variables -> Actions:
VITE_SUPABASE_URL
VITE_SUPABASE_ANON_KEY
Then open Settings -> Pages and set Source to GitHub Actions.
Every push to main will build and deploy the app. The GitHub Pages build uses the same Supabase project as local development.