Initial commit: Next Step health management app

A calm, reliable app to help manage appointments, medications, and notes
for chemo patients and their families.

Features:
- Today dashboard with next appointment and medications due
- Medication tracking with multiple schedule types (fixed times, interval, weekdays, PRN)
- One-tap dose logging with 5-minute undo window
- Questions for doctor tracking
- Family sharing with workspace model and invite links
- Offline-first with IndexedDB and sync
- Docker Compose deployment with Tailscale Funnel support

Tech stack:
- Next.js 14 (App Router) + TypeScript + Tailwind CSS
- PostgreSQL + Prisma
- Argon2 password hashing + session cookies
- Dexie.js for IndexedDB

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Gemini Agent
2026-01-18 23:16:45 +00:00
commit a32c609830
76 changed files with 9406 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { NextResponse } from 'next/server'
import { getSession, deleteSession, getSessionCookieClearConfig } from '@/lib/auth'
export async function POST() {
try {
const session = await getSession()
if (session) {
await deleteSession(session.sessionId)
}
const cookieConfig = getSessionCookieClearConfig()
const response = NextResponse.json({ message: 'Logged out successfully' })
response.cookies.set(cookieConfig)
return response
} catch (error) {
console.error('Logout error:', error)
// Still clear the cookie even on error
const cookieConfig = getSessionCookieClearConfig()
const response = NextResponse.json({ message: 'Logged out' })
response.cookies.set(cookieConfig)
return response
}
}