How ismia-shin/2311993-petuk works
Petuk is an early-stage restaurant discovery and management app. The implemented workflow is: a visitor uses the React interface to list, view, create, edit, or delete restaurants; the API client sends requests to FastAPI, whose restaurant routes validate data and read or write the configured database. The README also describes reviews and Beta plans for accounts, menus, and administration, but those capabilities are not represented in the sampled runtime code. The graph distinguishes those documented capabilities from the implemented CRUD flow.
Main entry points: restaurants.py Restaurant CRUD · main.py FastAPI app · app Admin controls · main.tsx React mount
Components 13
Web interface
- React mount
frontend/src/main.tsx - App navigation
frontend/src/App.tsx - Restaurant manager
frontend/src/components/RestaurantManager.tsx - Restaurant API client
frontend/src/services/restaurantApi.ts
API and persistence
- FastAPI app
backend/main.py - Restaurant CRUD
backend/app/restaurants.py - Restaurant model
backend/app/restaurants.py - Configured database
Documented product capabilities
- Reviews and ratings
backend/app - Accounts and roles
backend/app - Restaurant menus
backend/app - Admin controls
backend/app
Other components
- Visitor
Connections 14
- Visitor → React mount: uses
README.md - React mount → App navigation: renders
frontend/src/main.tsx - App navigation → Restaurant manager: renders
frontend/src/App.tsx - Restaurant manager → Restaurant API client: calls CRUD
frontend/src/components/RestaurantManager.tsx - Restaurant API client → FastAPI app: sends HTTP
README.md - FastAPI app → Restaurant CRUD: mounts routes
backend/main.py - FastAPI app → Restaurant CRUD: initializes database
backend/main.py - Restaurant CRUD → Restaurant model: validates and queries
backend/app/restaurants.py - Restaurant CRUD → Configured database: reads and writes
backend/app/restaurants.py - Visitor → Reviews and ratings: can submit reviews
README.md - Visitor → Accounts and roles: planned sign-in
README.md - Visitor → Restaurant menus: can view menus
README.md - Admin controls → Restaurant CRUD: planned management
README.md - Admin controls → Reviews and ratings: planned moderation
README.md