How jvpx1/cardapio-digital works
Cardápio Digital is a full-stack restaurant-menu manager. A user switches between the registration and menu views, submits validated dish details, and can list, edit, or confirm deletion of dishes. The browser communicates with an Express REST API, which validates and handles CRUD requests using SQLite for persistence. The README documents the complete CRUD and SPA capabilities; the shown source confirms the browser requests and API-to-database operations. The diagram omits styling and Postman materials, which are not part of the runtime workflow.
Main entry points: server.js Dish REST API · script.js SPA views · index.html Page structure · database.js SQLite database
Components 7
Browser interface
- SPA views
client/script.js - Dish form
client/script.js - Menu and actions
client/script.js - Page structure
client/index.html
API service
- Dish REST API
server/server.js
Persistent storage
- SQLite database
server/database.js
Other components
- Restaurant user
Connections 7
- Restaurant user → SPA views: uses
README.md - SPA views → Page structure: shows views
README.md - Dish form → Dish REST API: creates or updates
client/script.js - Menu and actions → Dish REST API: loads or deletes
client/script.js - Dish REST API → Dish form: returns JSON
client/script.js - Dish REST API → Menu and actions: returns JSON
client/script.js - Dish REST API → SQLite database: reads and writes
server/server.js