fe6e96dd3f
Shadboard starter-kit (Next.js 15 + React 19 + shadcn/ui + Tailwind 4) Sprint 4.a — Admin Dashboard: - Auth: NextAuth.js v5, login page, middleware, token rotation - Dashboard: KPI cards, Recharts stock chart, quick actions - Members: TanStack Table (search/sort/paginate), add/edit forms - Distributions: multi-step form, real-time quota check, history - Stock: batch management, recall dialog, bar chart - Reports: monthly/member-list/recall, PDF/CSV download, preview Sprint 4.b — Member Portal: - Separate route group with top-nav layout (mobile-first) - Quota dashboard with radial SVG progress indicators - Distribution history with month filter - Profile/settings with password change Cross-cutting: - i18n: German (default) + English via next-intl - Dark + light mode (next-themes, user-togglable) - Playwright E2E tests (6/6 green) - Docker multi-stage build (node:22-alpine) - API proxy via Next.js rewrites Tech: Next.js 15.2.8, React 19, Tailwind 4, NextAuth v5, TanStack Table, Recharts, Zod, React Hook Form, Playwright
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: cannamanage-db-local
|
|
environment:
|
|
POSTGRES_DB: cannamanage
|
|
POSTGRES_USER: cannamanage
|
|
POSTGRES_PASSWORD: dev_password_change_in_prod
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata_local:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U cannamanage"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: cannamanage-api/Dockerfile
|
|
container_name: cannamanage-backend
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/cannamanage
|
|
- SPRING_DATASOURCE_USERNAME=cannamanage
|
|
- SPRING_DATASOURCE_PASSWORD=dev_password_change_in_prod
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
profiles:
|
|
- full
|
|
|
|
frontend:
|
|
build:
|
|
context: ./cannamanage-frontend
|
|
dockerfile: Dockerfile
|
|
container_name: cannamanage-frontend
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- BASE_URL=http://localhost:3000
|
|
- HOME_PATHNAME=/dashboards/analytics
|
|
- BACKEND_URL=http://backend:8080
|
|
depends_on:
|
|
- backend
|
|
profiles:
|
|
- full
|
|
|
|
volumes:
|
|
pgdata_local:
|