# LTC Enjoy Learning — Production Setup

## 1. Add the publishable key

Open `supabase-config.js`.

Replace:

`PASTE_COMPLETE_SUPABASE_PUBLISHABLE_KEY_HERE`

with the complete `sb_publishable_...` key from:

Supabase → Settings → API Keys → Publishable key

Never add the secret key.

## 2. Add the administrator UID

Open `supabase-setup.sql`.

Replace:

`PASTE_YOUR_AUTH_USER_UUID_HERE`

with the UID shown in:

Supabase → Authentication → Users

## 3. Run the SQL

Copy the entire `supabase-setup.sql` file into:

Supabase → SQL Editor → New query

Then click Run.

## 4. Configure authentication URLs

In Supabase:

Authentication → URL Configuration

Set:

- Site URL: `https://ltcenjoylearning.com`
- Redirect URL: `https://ltcenjoylearning.com/**`

## 5. Deploy to Netlify

Upload the entire unzipped project folder to your current Netlify project.

Then test:

- `https://ltcenjoylearning.com/`
- `https://ltcenjoylearning.com/admin.html`
- `https://ltcenjoylearning.com/employee.html`

## Security

This package provides:

- Real Supabase sign-in
- Administrator authorization
- Database-backed employee management
- Row Level Security

Do not store resident PHI, medical records, or clinical information in this staff-learning portal.
