How gabrielhadad/ft_machry works
Cozinha+ is restaurant-operations software: staff use a React interface to manage catalog items and technical sheets, operate stock and locations, plan/complete production, and administer users and access groups through a Flask API backed by SQLAlchemy. The documented production workflow consumes recipe components using FEFO and adds the finished product to stock. The index supports several backend route-to-service and service-to-repository links; unsampled frontend feature wiring is not inferred, so those links are omitted.
Main entry points: database_config.py SQLAlchemy database · router.tsx Page routing · estoque/services.py Stock domain · producao/services.py Production domain
Components 23
Web interface
- Application shell
frontend/src/app/App.tsx - Page routing
frontend/src/app/router.tsx - Product catalog UI
frontend/src/features/produtos - Technical sheets UI
frontend/src/features/fichas - Stock operations UI
frontend/src/features/estoque - Production UI
frontend/src/features/producao
Catalog and recipes
- Product endpoints
app/features/produtos/routes.py - Product domain
app/features/produtos/services.py - Recipe endpoints
app/features/fichas_tecnicas/routes.py - Recipe domain
app/features/fichas_tecnicas/services.py
Stock and production
- Stock endpoints
app/features/estoque/routes.py - Stock domain
app/features/estoque/services.py - Stock persistence
app/features/estoque/repository.py - Production endpoints
app/features/producao/routes.py - Production domain
app/features/producao/services.py - Location endpoints
app/features/estoque/routes.py
Identity and access
- Access-group endpoints
app/features/acessos/routes.py - Access persistence
app/features/acessos/repository.py - User endpoints
app/features/usuarios/routes.py - Session endpoints
app/features/auth/routes.py - Authentication middleware
app/middleware/autenticacao.py
API and persistence
- SQLAlchemy database
db/database_config.py
Other components
- Restaurant staff
Connections 24
- Restaurant staff → Application shell: uses
- Application shell → Page routing: selects views
frontend/src/app/App.tsx - Page routing → Product catalog UI: routes to
frontend/src/app/router.tsx - Page routing → Technical sheets UI: routes to
frontend/src/app/router.tsx - Page routing → Stock operations UI: routes to
frontend/src/app/router.tsx - Page routing → Production UI: routes to
frontend/src/app/router.tsx - Application shell → SQLAlchemy database: loads shared data
frontend/src/app/App.tsx - Product endpoints → Product domain: delegates to
app/features/produtos/routes.py - Recipe endpoints → Recipe domain: delegates to
app/features/fichas_tecnicas/routes.py - Stock endpoints → Stock domain: delegates to
app/features/estoque/routes.py - Location endpoints → Stock domain: delegates to
app/features/estoque/routes.py - Stock domain → Stock persistence: uses persistence
app/features/estoque/services.py - Access-group endpoints → Access persistence: uses persistence
app/features/acessos/routes.py - Production endpoints → Production domain: delegates to
app/features/producao/routes.py - Production domain → Stock domain: consumes FEFO stock
- Production domain → Stock domain: adds finished goods
- Session endpoints → Access persistence: checks groups
app/features/auth/routes.py - Session endpoints → User endpoints: uses user records
app/features/auth/routes.py - Authentication middleware → Access persistence: resolves permissions
app/middleware/autenticacao.py - Access persistence → SQLAlchemy database: queries
app/features/acessos/repository.py - Stock persistence → SQLAlchemy database: queries and writes
app/features/estoque/repository.py - Product domain → SQLAlchemy database: persists domain data
- Recipe domain → SQLAlchemy database: persists domain data
- Production domain → SQLAlchemy database: persists production