Skip to content

Commit 3461cdb

Browse files
committed
remove old database patterns and start date fixes
1 parent 28f0b73 commit 3461cdb

14 files changed

Lines changed: 57 additions & 1372 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Instructions for AI code agents (OpenAI Codex, Claude Code, etc.) working on thi
77
This is a fitness challenge platform with:
88
- **Frontend**: Next.js 15 app in `apps/web/`
99
- **Backend**: Convex serverless functions in `packages/backend/`
10-
- **Auth**: Currently Clerk, migrating to Better Auth
10+
- **Auth**: Better Auth via `@convex-dev/better-auth`
1111

1212
## Development Process
1313

@@ -188,24 +188,6 @@ await t.run(async (ctx) => {
188188

189189
convex-test is a mock - always manually test against real Convex before shipping.
190190

191-
## Better Auth Migration
192-
193-
### Current State
194-
- Toggle: `NEXT_PUBLIC_AUTH_PROVIDER` (clerk | better-auth)
195-
- Clerk is default, Better Auth is opt-in
196-
197-
### Key Files
198-
- `apps/web/lib/auth-config.ts` - Provider detection
199-
- `apps/web/lib/better-auth/client.ts` - Better Auth client
200-
- `apps/web/components/providers/auth-provider.tsx` - Auth context
201-
- `apps/web/components/providers/convex-provider.tsx` - Convex + auth
202-
203-
### Migration Tasks
204-
1. Implement Better Auth server endpoints in `apps/web/app/api/auth/`
205-
2. Add user sync from Better Auth to Convex
206-
3. Update Convex functions to work with Better Auth tokens
207-
4. Test both auth flows
208-
209191
## Environment Setup
210192

211193
```bash

CLAUDE.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,8 @@ npx convex data <table> --prod
6868

6969
**Testing:**
7070
```bash
71-
# Setup local test database (first time)
72-
pnpm test:setup
73-
cd packages/database && DATABASE_URL=postgresql://test:test@localhost:5433/test_db pnpm db:push
74-
7571
# Run tests
7672
pnpm test -- --run
77-
78-
# Run tests (force Neon branches)
79-
pnpm test:integration -- --run
80-
81-
# Cleanup
82-
pnpm test:teardown
8373
```
8474

8575
**Install shadcn components (run from `apps/web`):**

0 commit comments

Comments
 (0)