Build user pages
This commit is contained in:
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||
|
||||
## Project Overview
|
||||
|
||||
Rhema Wave Technologies User Portal — a SvelteKit web app managing affirmations (audio content tied to solfeggio frequencies), user accounts, license keys, and authentication.
|
||||
Rhema Wave Technologies User Portal — a SvelteKit web app managing proclamations (audio content tied to solfeggio frequencies), user accounts, license keys, and authentication.
|
||||
|
||||
## Tech Stack
|
||||
|
||||
@@ -48,13 +48,12 @@ npm run deploy # Apply pending Prisma migrations
|
||||
### Key Patterns
|
||||
|
||||
- **Svelte 5 runes throughout** — use `$props()`, `$state()`, `$derived()`, `$effect()` (not Svelte 4 reactivity).
|
||||
- **SvelteKit form actions** for mutations (create/edit affirmations, registration, account setup).
|
||||
- **Reusable forms** — `AffirmationForm.svelte` is shared between create and edit via an `action` prop.
|
||||
- **API routes** at `src/routes/api/v1/` (affirmations, license keys).
|
||||
- **SvelteKit form actions** for mutations (create/edit proclamations, registration, account setup).
|
||||
- **API routes** at `src/routes/api/v1/` (proclamations, license keys).
|
||||
|
||||
### Database Schema
|
||||
|
||||
Core models: `User`, `Profile` (1:1 with User), `Address` (belongs to Profile), `Session`, `Account` (OAuth), `UserRole`, `Affirmation`, `SolfeggioFrequency`, `AffirmationCategory`, `LicenseKey`. Schema lives in `prisma/schema.prisma`.
|
||||
Core models: `User`, `Profile` (1:1 with User), `Address` (belongs to Profile), `Session`, `Account` (OAuth), `UserRole`, `Proclamation`, `SolfeggioFrequency`, `ProclamationCategory`, `LicenseKey`. Schema lives in `prisma/schema.prisma`.
|
||||
|
||||
## Testing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user