How olivzx/ns_gourmet_gestor_omega works
NS Gourmet is a public digital menu and ordering portal. Customers browse and search products, add items to a cart, provide fulfillment and payment details, then submit an order and receive confirmation. The browser uses public menu and order endpoints; local development serves a file-backed demo, while the separate API handlers call Supabase RPCs when configured. The README also describes Omega integration and administrative, delivery, and reporting features as future plans, so they are not shown as implemented components. Edges reflect the excerpts and README; the SQL migrations were not sampled.
Main entry points: mock-server.js Local demo server · pedido.html Menu page · pedido.js Browse and cart · supabase.js Supabase RPC client
Components 12
Customer portal
- Menu page
pedido.html - Responsive layout
pedido.css - Browse and cart
pedido.js - Checkout and confirmation
pedido.js - Demo catalog
data/menu.json
Public order API
- Local demo server
mock-server.js - Menu endpoint
api/public-order/menu.js - Order endpoint
api/public-order/orders.js
Order persistence
- Supabase RPC client
lib/supabase.js - Supabase database
- Public-order migrations
supabase/migrations
Other components
- Customer
Connections 13
- Customer → Menu page: opens
README.md - Menu page → Responsive layout: uses styles
README.md - Menu page → Browse and cart: loads script
- Browse and cart → Local demo server: fetches menu
pedido.js - Local demo server → Demo catalog: reads
mock-server.js - Browse and cart → Checkout and confirmation: opens checkout
pedido.js - Checkout and confirmation → Local demo server: submits order
pedido.js - Local demo server → Menu endpoint: serves same path
- Local demo server → Order endpoint: serves same path
- Menu endpoint → Supabase RPC client: calls RPC
api/public-order/menu.js - Order endpoint → Supabase RPC client: calls RPC
api/public-order/orders.js - Supabase RPC client → Supabase database: sends RPC
lib/supabase.js - Public-order migrations → Supabase database: defines database changes