- Multi-tenant client management with unique API keys - Semaphore SMS integration (per-client key + sender name + credit balance) - DB-based SMS queue with 3-attempt retry and exponential backoff - Failed SMS dashboard with manual retry button - Reports page with date/client filter and CSV export - Admin auth via NextAuth (email/password) - Docker Compose setup (app + PostgreSQL 16) - Prisma 5 schema with SmsQueue, SmsLog, Client, User models Tech: Next.js 14 App Router + TypeScript + Tailwind CSS + Prisma + PostgreSQL
14 lines
339 B
Plaintext
14 lines
339 B
Plaintext
# Database
|
|
DATABASE_URL="postgresql://nfchub:strongpassword@postgres:5432/nfchub"
|
|
|
|
# NextAuth
|
|
NEXTAUTH_URL="http://localhost:3000"
|
|
NEXTAUTH_SECRET="change-me-with-openssl-rand-base64-32"
|
|
|
|
# Internal API security
|
|
INTERNAL_API_KEY="change-me-internal-key"
|
|
|
|
# Seed defaults (optional)
|
|
SEED_EMAIL="admin@nfchub.local"
|
|
SEED_PASSWORD="admin123"
|