Handover workspace

ERS, Todo, OfferReview, and Docu in one view

Imported from live server docs, code structure, and deployment notes.

Apr 3, 2026, 12:38 PM

ERS

ERS v0.2 — Build Pack (Prisma + App Router + Core Skeletons)

**App Version:** 0.2.0 This file includes: env vars, folder structure, Prisma schema, middleware, auth helpers, storage, email, peer stats, pdf signing backend, and key route skeletons.

docs/specs/ERS-v0.2-build-pack.md

Updated Feb 20, 2026, 7:24 AM

ERS v0.2 — Build Pack (Prisma + App Router + Core Skeletons)

App Version: 0.2.0
This file includes: env vars, folder structure, Prisma schema, middleware, auth helpers, storage, email, peer stats, pdf signing backend, and key route skeletons.


0) Environment Variables (.env)

DATABASE_URL="postgresql://USER:PASSWORD@HOST:5432/ers?schema=public"

AUTH_JWT_SECRET="replace-with-long-random-secret"
AUTH_COOKIE_NAME="ers_session"

UPLOAD_BASE_DIR="/var/app/ers_uploads"
UPLOAD_MAX_MB="20"

NEXT_PUBLIC_APP_VERSION="0.2.0"

SMTP_HOST="smtp.example.com"
SMTP_PORT="587"
SMTP_USER="user"
SMTP_PASS="pass"
EMAIL_FROM="hr@company.com"

INTERNAL_API_SECRET="replace-with-long-random-secret"

1) Folder Structure

app/
  (auth)/login/page.tsx
  (app)/layout.tsx
  (app)/page.tsx
  (app)/hr/renewals/page.tsx
  (app)/hr/renewals/new/page.tsx
  (app)/hr/renewals/[id]/page.tsx
  (app)/manager/requests/page.tsx
  (app)/manager/requests/[id]/page.tsx
  (app)/ceo/renewals/page.tsx
  (app)/ceo/renewals/[id]/page.tsx
  (app)/ceo/signature/page.tsx
  (app)/admin/settings/page.tsx
  (app)/admin/audit/page.tsx
  (app)/admin/users/page.tsx
  (app)/notifications/page.tsx

app/api/...
lib/...
prisma/schema.prisma
middleware.ts