mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 05:01:17 +00:00
- Add PostgreSQL connection (src/db.ts) - Configure BetterAuth with email/password (src/auth/index.ts) - Add session middleware for route protection (src/auth/session-middleware.ts) - Add registerAuthHandlers for mounting auth routes (src/auth/http.ts) - Rename index.ts to server.ts - Add .env.example with required environment variables Co-authored-by: Ona <no-reply@ona.com>
9 lines
252 B
Plaintext
9 lines
252 B
Plaintext
# PostgreSQL connection string
|
|
DATABASE_URL=postgresql://user:password@localhost:5432/aris
|
|
|
|
# BetterAuth secret (min 32 chars, generate with: openssl rand -base64 32)
|
|
BETTER_AUTH_SECRET=
|
|
|
|
# Base URL of the backend
|
|
BETTER_AUTH_URL=http://localhost:3000
|