Next.js App Router frontend integrating OIDC with Auth; shadcn/ui components and Sonner toasts; serv
3.7K
Category: Frontend Web
Samakia Web is a Next.js 15 App Router application delivering the platform UI. It integrates with the Auth service for identity flows and reads runtime configuration via @samakia-platform/config.
ops/docker/web.Dockerfilehttps://samakia.net.https://auth.samakia.net.@samakia-platform/config and k8s ExternalSecrets.next build, started via next start (port 3000).UI policy:
web/src/components/ui.web/src/components/ui/sonner.tsx), mounted with <Toaster />.@samakia-platform/config/public instead of direct process.env.ops/k8s/base/ingresses/web.yaml maps samakia.net to service web.--hostname 0.0.0.0 --port 3000.flowchart TD
I[NGINX Ingress: samakia.net] --> W[Next.js Web]
W --> A[Auth Service]
W --> AD[Addresses]
W --> ST[MinIO App]
subgraph Observability
L[Logger/Pino]
end
W -.-> L
classDef obs fill:#f5f5f5,stroke:#bbbbbb,color:#333333
class L obs
sequenceDiagram
participant B as Browser
participant W as Web (Next.js)
participant A as Auth (OIDC)
B->>A: GET /auth/authorize
A-->>B: 302 redirect to callback with code
B->>W: GET /auth/callback?code=...
W->>A: POST /auth/token (code exchange)
A-->>W: tokens
W-->>B: session established
web Jest testsweb-e2e Playwright journeys; CI reports in dist/.playwright/web-e2e.ops/k8s/base/deployments/web.yaml, Service + Ingress samakia.net.docker.io/<namespace>/samakia-web:<tag>Content type
Image
Digest
sha256:b1526ff9f…
Size
484.1 MB
Last updated
12 months ago
docker pull ankouros/samakia-web:prod