# π¬π Ghana Care Finder
Find the right healthcare facility fast across Ghana β including a Tourist Emergency Mode that maps attractions to their nearest hospitals.
---
## π Launching on Lovable (Recommended β No Terminal Needed)
### Step 1 β Import to Lovable
1. Go to **lovable.dev** β create an account
2. Click **New project β Import from GitHub** (push this repo first)
OR click **New project** and upload the zip directly
### Step 2 β Connect Supabase
1. In Lovable, click the **Supabase** integration button
2. Create a free Supabase project at **supabase.com**
3. Lovable auto-injects `VITE_SUPABASE_URL` and `VITE_SUPABASE_ANON_KEY`
### Step 3 β Run the database migration
1. In Supabase dashboard β **SQL Editor**
2. Open `supabase/migrations/001_schema_and_rls.sql` from this repo
3. Paste the entire contents and click **Run**
### Step 4 β Seed the database
1. In `src/pages/admin/FacilityManager.tsx`, temporarily add:
```tsx
import { seedDatabase } from '../../data/seed';
// Inside the component JSX:
π± Seed Database
```
2. In the Lovable preview, go to `/admin/facilities`
3. Sign up for an account, promote yourself to `superadmin` in Supabase:
- Supabase β Table Editor β `user_roles` β find your row β change `role` to `superadmin`
4. Click **π± Seed Database** once
5. Remove the seed button and save
### Step 5 β Enable Google Auth (optional)
1. Supabase β Authentication β Providers β Google β enable
2. Add your Google OAuth credentials
### Step 6 β Publish
Click **Publish** in Lovable β you get a live URL instantly.
---
## π Tech Stack
- **React 18** + TypeScript + Vite
- **Supabase** β PostgreSQL database, Auth, real-time
- **TanStack Query** β data fetching and caching
- **Zustand** β UI state (search, filters, GPS)
- **React Router v6** β client-side routing
- **React Hook Form + Zod** β form validation
---
## π Project Structure
```
src/
lib/ supabase.ts, database.types.ts
hooks/ useAuth, useFacilities, useReviews, useUsers, useAuditLog β¦