Logo Lanfrica

danielntiawuku/ecolink-ghana

Domain:

environment and energydigital infrastructure

Record type:

softwareproject
Creator:
dan
Host:
EcoLink Ghana - recycling into climate action (mobile app, dashboard, Supabase backend) # EcoLink Ghana Turning everyday recycling into climate action β€” household + collector **mobile app** (React Native / Expo / TypeScript), a **web dashboard** (React / Vite) for recycler, assembly & admin roles, and a **Supabase** backend. > Full spec-compliance audit & current-state details: see `Ecolink Docs/ECOLINK_CURRENT_STATE.md`. --- ## πŸ—‚ Structure ``` backend/ supabase/ migrations/ # 001..018 (all applied to the live DB) functions/ # no-show-timeout Β· threshold-alert Β· send-push-notification (Deno edge functions, deployed live) frontend/ mobile/ # React Native (Expo) + TypeScript β€” household + collector dashboard/ # React (Vite) + Tailwind β€” recycler / assembly / admin legacy/ web-simulation/ # superseded by frontend/mobile (kept for reference) ``` ## πŸš€ Quickstart ```bash # Backend β€” link CLI to the live project (already linked on this machine) cd backend supabase migration list # 001..018 all applied remotely # Mobile cd frontend/mobile npm install cp .env.example .env # then paste the REAL Supabase URL + anon key npx expo start # Dashboard cd frontend/dashboard npm install cp .env.example .env # then add VITE_SUPABASE_URL + VITE_SUPABASE_ANON_KEY npm run dev ``` ## ☁️ Live Supabase | Item | Value | |---|---| | Project ref | `xtuftjflvsplqwnprcun` | | Region | West Europe (London) | | Dashboard | supabase.com | | REST host | xtuftjflvsplqwnprcun.supaba… | ### Migration status (live DB) - **001** β€” full schema + RLS + EcoPoints functions/triggers β€” βœ… applied (via dashboard) - **002** β€” auto-create profile on signup (`handle_new_user`) + staff-role signup guard β€” βœ… applied via `supabase db push` (2026-07-31), verified live - **003** β€” staff-role guard inverted (blocks only `anon`/`authenticated`) + `revoke execute` β€” βœ… applied - **004** β€” owner-scoped RLS policies + security-definer award trigger + `notifications` t …