Quick Start
Get up and running in 5 minutes
This guide will get you up and running with Respondeo in just a few minutes.
Clone and Install
git clone <repository-url>
cd quiz-app
bun installConfigure Environment
Create apps/web/.env.local:
# App
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Auth (generate secret with: openssl rand -base64 32)
BETTER_AUTH_SECRET=your-32-character-secret-here
BETTER_AUTH_URL=http://localhost:3000
# OIDC Provider (example: Keycloak)
OIDC_ISSUER=https://auth.example.com/realms/your-realm
OIDC_CLIENT_ID=quiz-app
OIDC_CLIENT_SECRET=your-client-secret
# Database
DATABASE_URL=postgresql://quiz_app:strongpassword@localhost:5432/quiz_app
# Optional: Caching
REDIS_URL=redis://:strongvalkeypassword@localhost:6379Run Migrations
bun run db:migrateWhat's Next?
Now that you have the app running:
- Sign in with your OIDC provider
- Configure RBAC to set up roles and permissions — see RBAC Guide
- Create your first quiz at
/quiz/new - Explore features:
- Use the API — see API Reference
Troubleshooting
"Database connection failed"
Make sure PostgreSQL is running:
docker compose psOr check your local PostgreSQL installation:
pg_isready"OIDC authentication error"
- Verify your
OIDC_ISSUERURL is accessible - Check that the callback URL is configured:
http://localhost:3000/api/auth/callback/hogwarts - Ensure
OIDC_CLIENT_IDandOIDC_CLIENT_SECRETare correct
"Session not persisting"
Make sure BETTER_AUTH_SECRET is set and is at least 32 characters long.
Production Deployment
Ready to deploy? Check out the Deployment Guide.