You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -99,12 +100,14 @@ Best for: Production, staging, or if you don't want to run Docker locally.
99
100
100
101
5.**Seed test data** (optional):
101
102
- Go to **Authentication** → **Users** → **Add User**
102
-
- Create a user with email `test@gmail.com` and password `password`
103
+
- Create a user with your own email and a strong password
104
+
- In `supabase/seed_data.sql`, set `target_email` to that email
103
105
- Go to **SQL Editor** and run the contents of `supabase/seed_data.sql`
104
-
- The script automatically finds the test user and creates:
106
+
- The script creates:
105
107
-**Testimony** project
106
108
-**Pink Line** project
107
-
- Adds the test user as an editor to both projects
109
+
-**Memorial Sites** project
110
+
- Adds your selected user as an editor to all projects
108
111
109
112
### Option B: Local Mode (Supabase Local)
110
113
@@ -135,30 +138,36 @@ Local mode runs Supabase services in Docker containers on your machine.
135
138
supabase db reset
136
139
```
137
140
138
-
This creates a test user and project automatically.
141
+
This creates a local-only test user and project automatically.
142
+
143
+
## GitHub Pages Deployment
144
+
145
+
This repo includes a GitHub Pages workflow at `.github/workflows/deploy-pages.yml`.
139
146
140
147
## Database Management
141
148
142
149
### Test User Credentials
143
150
144
-
The seed file creates a test user you can use immediately (both local and cloud):
151
+
`supabase/seed.sql`creates a local development test user:
145
152
146
153
| Field | Value |
147
154
| -------- | ---------------- |
148
155
| Email |`test@gmail.com`|
149
156
| Password |`password`|
150
157
151
-
**Local mode**: This user is automatically added as owner of a "Test Project" when you run `supabase db reset`.
158
+
**Local mode only**: This user is automatically added as owner of a "Test Project" when you run `supabase db reset`.
152
159
153
-
**Cloud mode**: After creating the user via Dashboard, run `supabase/seed_data.sql` to add the user as an editor to "Testimony" and "Pink Line" projects.
160
+
**Cloud mode**: Do not use shared demo credentials. Create a user with your own email and strong password, set `target_email` in `supabase/seed_data.sql`, then run it.
154
161
155
162
### Database Reset (Cloud)
156
163
157
164
If you need to completely reset your cloud database:
158
165
159
166
1. Go to **SQL Editor** in your Supabase dashboard
160
167
2. Run `supabase/nuclear_reset.sql` to drop everything and recreate the schema
161
-
3. Run `supabase/seed_data.sql` to add test data (after creating the test user)
168
+
3. Create a real user in Auth (your email + strong password)
169
+
4. Set `target_email` in `supabase/seed_data.sql`
170
+
5. Run `supabase/seed_data.sql` to add project data and memberships
0 commit comments