How learnevolution/pizza_vendas works
King Pizzas is a pizza-and-drinks ordering storefront with an owner administration panel. Customers browse the menu, assemble an order, submit customer/payment details, and can follow its status; the owner manages products, orders, store settings, and sales summaries. The sampled backend confirms MongoDB-backed product and order handling and JWT-protected administration. The tree contains a second, smaller server entry point; its product and authentication routes are included, but their runtime relationships beyond registration are not inferred.
Main entry points: api.js HTTP client · AdminPage.jsx Admin panel · App.jsx Menu and checkout · server.js API server
Components 20
Customer storefront
- Menu and checkout
src/App.jsx - Order tracking
src/PedidoStatus.jsx - HTTP client
src/api.js
Owner administration
- Admin panel
src/AdminPage.jsx - Order management
src/AdminPedidos.jsx - Sales summary
src/AdminFinancas.jsx - Store settings
src/AdminConfiguracoes.jsx
API services
- API server
server/server.js - Admin login
server/routes/auth.js - JWT guard
server/middleware/authAdmin.js - Product catalog
server/routes/produtos.js - Orders and finance
server/routes/pedidos.js - Store settings API
server/routes/configuracoes.js - Secondary API entry
server/server/server.js - Secondary login route
server/server/routes/auth.js - Secondary products route
server/server/routes/produtos.js
Persistence
- MongoDB connector
server/lib/db.js
Other components
- Customer
- Owner
Connections 31
- Customer → Menu and checkout: uses
- Owner → Admin panel: uses
- Menu and checkout → HTTP client: requests data
src/App.jsx - Menu and checkout → Admin panel: routes to
src/App.jsx - Menu and checkout → Order tracking: routes to
src/App.jsx - Menu and checkout → WhatsApp: opens order
src/App.jsx - Admin panel → HTTP client: calls
src/AdminPage.jsx - Admin panel → Order management: renders
src/AdminPage.jsx - Admin panel → Sales summary: renders
src/AdminPage.jsx - Admin panel → Store settings: renders
src/AdminPage.jsx - Order management → HTTP client: calls
src/AdminPedidos.jsx - Sales summary → HTTP client: calls
src/AdminFinancas.jsx - Store settings → HTTP client: calls
src/AdminConfiguracoes.jsx - Order tracking → HTTP client: fetches status
src/PedidoStatus.jsx - HTTP client → Product catalog: requests products
src/api.js - HTTP client → Admin login: submits login
src/api.js - HTTP client → Orders and finance: requests orders
src/api.js - HTTP client → Store settings API: requests settings
src/api.js - API server → Product catalog: mounts route
server/server.js - API server → Admin login: mounts route
server/server.js - API server → Orders and finance: mounts route
server/server.js - API server → Store settings API: mounts route
server/server.js - Admin login → MongoDB connector: reads admin
server/routes/auth.js - Product catalog → MongoDB connector: reads and writes
server/routes/produtos.js - Orders and finance → MongoDB connector: reads and writes
server/routes/pedidos.js - Store settings API → MongoDB connector: reads and writes
server/routes/configuracoes.js - Product catalog → JWT guard: guards mutations
server/routes/produtos.js - Orders and finance → JWT guard: guards admin routes
server/routes/pedidos.js - Store settings API → JWT guard: guards updates
server/routes/configuracoes.js - Secondary API entry → Secondary products route: mounts route
server/server/server.js - Secondary API entry → Secondary login route: mounts route
server/server/server.js