How georgi-01/pizzeria-jetski-web-app-vms works
Pizzeria Jetski is a web application with a React frontend and a NestJS backend backed by PostgreSQL. The principal visible workflow is a browser loading the frontend, reaching the router, and opening public or administrative pages. The tree also shows employee and manager page areas, though the sampled router does not connect them. On the server, startup initializes the application and seeds the database when needed; a separate health endpoint checks database connectivity. Backend request/data flows are based on sampled source; broader page capabilities are inferred from filenames and route declarations.
Main entry points: AppRouter.jsx App router · database-initializer.service.ts Database initializer · app.module.ts Application module · prisma.service.ts Prisma client
Components 32
Web entry and navigation
- Frontend entry
frontend/src/main.jsx - App shell
frontend/src/App.jsx - App router
frontend/src/app/router/AppRouter.jsx
Public pages
- Home page
frontend/src/pages/public/Home/HomePage.jsx - Login page
frontend/src/pages/public/Login/LoginPage.jsx - Error pages
frontend/src/pages/public/Error/ErrorPage.jsx
Admin operations
- Admin control panel
frontend/src/pages/admin/ControlPanel/ControlPanelPage.jsx - Categories
frontend/src/pages/admin/Categories/CategoriesPage.jsx - Ingredients
frontend/src/pages/admin/Ingredients/IngredientsPage.jsx - Inventory
frontend/src/pages/admin/Inventory/InventoryPage.jsx - Menu
frontend/src/pages/admin/Menu/MenuPage.jsx - Orders
frontend/src/pages/admin/Orders/OrdersPage.jsx - Admin promotions
frontend/src/pages/admin/Promotions/PromotionsPage.jsx - Admin employees
frontend/src/pages/admin/Employees/EmployeesPage.jsx - System status
frontend/src/pages/admin/System/SystemPage.jsx
Employee and manager
- Daily tasks
frontend/src/pages/employee/DailyTasks/DailyTasksPage.jsx - Make line
frontend/src/pages/employee/MakeLine/MakeLinePage.jsx - Employee promotions
frontend/src/pages/employee/Promotions/PromotionsPage.jsx - Routing
frontend/src/pages/employee/Routing/RoutingPage.jsx - Archive
frontend/src/pages/manager/Archive/ArchivePage.jsx - Manager employees
frontend/src/pages/manager/Employees/EmployeesPage.jsx - Order history
frontend/src/pages/manager/OrderHistory/OrderHistoryPage.jsx - Statistics
frontend/src/pages/manager/Statistics/StatisticsPage.jsx
Backend and database
- Server bootstrap
backend/src/main.ts - Application module
backend/src/app.module.ts - Health endpoint
backend/src/app.controller.ts - Health check
backend/src/app.service.ts - Prisma client
backend/src/prisma/prisma.service.ts - Database initializer
backend/src/database-initializer/database-initializer.service.ts - Seed file reader
backend/src/database-initializer/seed-file-reader.service.ts - PostgreSQL
Other components
- Browser user
Connections 24
- Browser user → Frontend entry: opens app
- Frontend entry → App shell: renders
- App shell → App router: renders
- App router → Home page: routes to
- App router → Login page: routes to
- App router → Error pages: routes to
- App router → Admin control panel: routes to
- App router → Categories: routes to
- App router → Ingredients: routes to
- App router → Inventory: routes to
- App router → Menu: routes to
- App router → Orders: routes to
- App router → Admin promotions: routes to
- App router → Admin employees: routes to
- App router → System status: routes to
- Server bootstrap → Application module: starts
- Application module → Database initializer: loads
- Application module → Health endpoint: registers
- Health endpoint → Health check: calls
- Health check → Prisma client: checks connection
- Database initializer → Seed file reader: reads seed files
- Seed file reader → Database initializer: returns seed data
- Database initializer → Prisma client: seeds transaction
- Prisma client → PostgreSQL: queries