How rupertz/tropico-resipetanaw works
ResipeTanaw is a commissary production planner: production heads maintain ingredients and recipes, plan scaled batches, and kitchen staff start and complete them while recording actual yield. The React app provides login, overview, and management workflows; its shared API client sends requests to PHP endpoints, which enforce roles and batch rules server-side and persist operational data in MySQL. The README documents transactional stock deduction and refusal on shortages. Some endpoint relationships are based on explicit README behavior because their source was not sampled.
Main entry points: App.jsx Planner interface · _db.php Database connection · api.js API client · batches.php Batch API
Components 15
React application
- Planner interface
frontend/src/App.jsx - API client
frontend/src/api.js
PHP API
- Authentication
api/auth.php - Ingredient API
api/ingredients.php - Recipe API
api/recipes.php - Batch API
api/batches.php - Health endpoint
api/health.php - Notes endpoint
api/notes.php
Production domain
- Session and roles
api/_auth.php - Batch rules
api/rules.php
Persistence
- Operational database
database.sql - Database connection
api/_db.php - Alternate DB helpers
api/db.php
Other components
- Production head
- Kitchen staff
Connections 24
- Production head → Planner interface: manages production
README.md - Kitchen staff → Planner interface: works batches
README.md - Planner interface → API client: calls
frontend/src/App.jsx - Planner interface → Authentication: requests login
frontend/src/App.jsx - Planner interface → Ingredient API: manages stock
frontend/src/App.jsx - Planner interface → Recipe API: manages recipes
frontend/src/App.jsx - Planner interface → Batch API: plans and updates
frontend/src/App.jsx - API client → Authentication: sends HTTP
frontend/src/api.js - API client → Ingredient API: sends HTTP
frontend/src/api.js - API client → Recipe API: sends HTTP
frontend/src/api.js - API client → Batch API: sends HTTP
frontend/src/api.js - Authentication → Session and roles: uses sessions
api/auth.php - Ingredient API → Session and roles: checks roles
api/ingredients.php - Recipe API → Session and roles: checks roles
api/recipes.php - Batch API → Session and roles: checks roles
api/batches.php - Batch API → Batch rules: checks transitions
api/batches.php - Authentication → Database connection: queries users
api/auth.php - Ingredient API → Database connection: reads and writes
api/ingredients.php - Recipe API → Database connection: reads and writes
api/recipes.php - Batch API → Database connection: reads and writes
api/batches.php - Batch rules → Database connection: queries stock
api/rules.php - Database connection → Operational database: connects to
- Health endpoint → Alternate DB helpers: uses helpers
api/health.php - Notes endpoint → Alternate DB helpers: uses helpers
api/notes.php