How sdiawa/lab-devops works
DSK Stock is a stock-management web application used as the shared business workload across seven DevOps labs. The user workflow is to sign in, browse products, create or edit stock records, record stock movements, and review dashboard or movement-history results. The graph shows the frontend-to-API boundary, domain handlers, and persistence layer. The README documents the deployment-lab topics, but this tree contains application source rather than those lab configurations; frontend-to-backend links are therefore marked unverified.
Main entry points: api.ts API client · App.tsx App pages · products.controller.ts Product endpoints · prisma.service.ts Prisma service
Components 19
Web interface
- App pages
dsk-stock-lab01-docker/apps/frontend/src/App.tsx - Login page
dsk-stock-lab01-docker/apps/frontend/src/pages/LoginPage.tsx - Auth state
dsk-stock-lab01-docker/apps/frontend/src/providers/auth-provider.tsx - Product pages
dsk-stock-lab01-docker/apps/frontend/src/pages/ProductsPage.tsx - Product detail
dsk-stock-lab01-docker/apps/frontend/src/pages/ProductDetailPage.tsx - Dashboard page
dsk-stock-lab01-docker/apps/frontend/src/pages/DashboardPage.tsx - Settings page
dsk-stock-lab01-docker/apps/frontend/src/pages/SettingsPage.tsx - API client
dsk-stock-lab01-docker/apps/frontend/src/lib/api.ts
API and identity
- Auth endpoints
dsk-stock-lab01-docker/apps/backend/src/auth/auth.controller.ts - Auth service
dsk-stock-lab01-docker/apps/backend/src/auth/auth.service.ts - JWT guard
dsk-stock-lab01-docker/apps/backend/src/common/jwt-auth.guard.ts
Stock operations
- Product endpoints
dsk-stock-lab01-docker/apps/backend/src/products/products.controller.ts - Product service
dsk-stock-lab01-docker/apps/backend/src/products/products.service.ts - Product inputs
dsk-stock-lab01-docker/apps/backend/src/products/dto - Dashboard endpoint
dsk-stock-lab01-docker/apps/backend/src/dashboard/dashboard.controller.ts - Dashboard service
dsk-stock-lab01-docker/apps/backend/src/dashboard/dashboard.service.ts
Persistence
- Prisma service
dsk-stock-lab01-docker/apps/backend/src/prisma/prisma.service.ts - PostgreSQL
Other components
- Stock user
Connections 25
- Stock user → App pages: uses
- App pages → Login page: routes
- App pages → Product pages: routes
- App pages → Product detail: routes
- App pages → Dashboard page: routes
- App pages → Settings page: routes
- Login page → Auth state: uses
- Auth state → API client: requests
- Product pages → API client: requests
- Product detail → API client: requests
- Dashboard page → API client: requests
- Settings page → API client: requests
- API client → Auth endpoints: HTTP API
- API client → Product endpoints: HTTP API
- API client → Dashboard endpoint: HTTP API
- Auth endpoints → Auth service: delegates to
- Auth service → Prisma service: queries
dsk-stock-lab01-docker/apps/backend/src/auth/auth.service.ts - Product endpoints → Product service: delegates to
dsk-stock-lab01-docker/apps/backend/src/products/products.controller.ts - Product endpoints → JWT guard: guards routes
dsk-stock-lab01-docker/apps/backend/src/products/products.controller.ts - Product endpoints → Product inputs: accepts inputs
dsk-stock-lab01-docker/apps/backend/src/products/products.controller.ts - Dashboard endpoint → Dashboard service: delegates to
dsk-stock-lab01-docker/apps/backend/src/dashboard/dashboard.controller.ts - Dashboard endpoint → JWT guard: guards routes
dsk-stock-lab01-docker/apps/backend/src/dashboard/dashboard.controller.ts - Dashboard service → Prisma service: queries
dsk-stock-lab01-docker/apps/backend/src/dashboard/dashboard.service.ts - Product service → Prisma service: persists stock
dsk-stock-lab01-docker/apps/backend/src/products/products.service.ts - Prisma service → PostgreSQL: stores data