Beatriz Santana

/02Commercial system · Delivery · Full Stack

JM Lanches

An owned sales channel for a burger shop in Rio de Janeiro: digital menu, online ordering and an operations dashboard.

Context
Client project, built by DevPoint
My role
Full-stack development
Period
2026
Team
Small DevPoint team
Status
Live
JM Lanches menu on mobile: logo, store status and categories.
Combos with add-on groups and quantity controls.
List of craft burgers with photos and prices.
01

Executive summary

Owned delivery system with a digital menu, real-time orders, a Kanban dashboard, recipe-based inventory and WhatsApp message automation.

Quick read
Problem
Selling only through delivery marketplaces means paying a commission on every order and having no direct relationship with customers.
Solution
An owned channel: public menu, passwordless login via WhatsApp, real-time order tracking and a dashboard that organizes kitchen, delivery and inventory.
My role
Full-stack development: screens, API, database and integrations.
Stack
Next.js 15 · React 19 · Express · MySQL · Pusher/WebSocket · Evolution API
02

Context and problem

JM Lanches is a burger shop in Rio de Janeiro that relied on delivery marketplaces. The project created an owned sales channel where the restaurant controls the menu, prices, delivery fees and customer relationship.

The system had to work in the real routine of a kitchen: orders arriving at any time, a team watching a screen, a thermal printer, couriers and opening hours — with no room for charging the wrong amount or deducting stock twice.

03

Solution goal

Give the business an owned sales channel and an organized operation, with the reliability a team expects from an ordering system.

  1. 01A fast mobile menu with categories and add-ons.
  2. 02Frictionless ordering: WhatsApp login codes and automatic delivery fees.
  3. 03A dashboard that alerts the team the moment an order arrives.
  4. 04Inventory and finance tied directly to orders.
04

My contribution

My contributionMy contribution

I worked on full-stack development: menu and dashboard screens, API routes, the MySQL data model and integrations with WhatsApp, maps and notifications.

Collaboration

Built by a small team, with branches and pull requests on GitHub and direct validation with the restaurant’s operation.

05

Features

Customer

  • Digital menu with categories and add-ons
  • Shopping cart and discount coupons
  • Automatic delivery fee with geolocation and map
  • Passwordless login with a code sent on WhatsApp
  • Real-time order tracking

Operations

  • Drag-and-drop Kanban dashboard
  • Sound alerts and browser notifications
  • Receipt printing on thermal printers
  • Automatic WhatsApp status messages

Management

  • Recipe-based inventory (ingredients per product)
  • Automatic stock deduction and reversal
  • Waste control and stock counts
  • Financial dashboard
06

Architecture

Clients03
  • Public menuNext.js · mobile first
  • Store dashboardKanban · Service Worker · alerts
  • WhatsAppLogin codes and status
Clients ↔ Platform
  • HTTPS · REST
  • WebSocket / Pusher
  • Polling (fallback)
Platform06
  • API RESTNode.js · Express
  • AuthenticationJWT · bcrypt · OTP
  • Orders & pricingRecalculated server-side
  • InventoryRecipes · idempotent deduction
  • Real timeWebSocket · Pusher · polling
  • Business hoursAmerica/Sao_Paulo
Platform ↔ Data
  • Transactional SQL
Data02
  • MySQLTransactions · FOR UPDATE
  • CloudinaryMenu images
Platform ↔ Integrations
  • Messages & OTP
  • Geocoding
  • Dashboard events
Integrations04
  • Evolution APIWhatsApp
  • n8nMessage automation
  • Pusher ChannelsManaged WebSocket
  • OpenStreetMapNominatim · Leaflet
Simplified view of the main components and flows. It does not reproduce code or internal details.
  • A single emitter publishes each new order over native WebSocket and Pusher; the dashboard uses whichever channel is available and falls back to polling.
  • Prices, coupons and delivery fees are recalculated by the API from the database.
  • Stock deduction and reversal run inside a transaction, with row locks on ingredients.
07

Tech stack

Frontend
  • Next.js 15
  • React 19
  • CSS Modules
  • Leaflet
  • Service Workers
Backend
  • Node.js
  • Express
  • JWT
  • bcrypt
Real time
  • WebSockets
  • Pusher
  • Polling (fallback)
Data
  • MySQL
  • Cloudinary
Automation
  • Evolution API (WhatsApp)
  • n8n
Geo
  • OpenStreetMap / Nominatim
  • Haversine formula
Infra
  • Vercel
  • Docker
08

Challenges and technical decisions

  1. 01

    Real time on any hosting

    Problem
    The dashboard must know about an order the second it is placed, but serverless functions, such as Vercel’s, do not keep WebSocket connections open.
    Decision
    A single emitter publishes the event over native WebSocket when the server is persistent and over Pusher Channels when running serverless. The dashboard also polls as a fallback.
    Why
    The same code runs on a dedicated server or on Vercel, and the kitchen does not miss orders if a connection drops.
    Trade-off
    Three paths to test. The dashboard tracks the latest order it has seen to avoid duplicate alerts.
  2. 02

    Financial integrity

    Problem
    Prices, add-ons and discounts sent by the browser can be tampered with by whoever places the order.
    Decision
    The API ignores client-side values: it reads each product and add-on price from the database, stores a price snapshot on every line item and recalculates subtotal, coupon and fee on the server. Coupons are validated by date range, minimum order and usage limit.
    Why
    The amount charged is always the registered price, and order history does not change if the menu is edited later.
  3. 03

    Inventory consistency

    Problem
    Repeated status changes or double clicks could deduct stock twice; cancellations had to return the ingredients.
    Decision
    Deduction and reversal run in MySQL transactions, with SELECT … FOR UPDATE on ingredients and idempotent checks: deduct only if the order has not been deducted yet, reverse only if it was deducted and not yet reversed.
    Why
    The balance stays correct even with concurrent or repeated requests.
  4. 04

    Geolocation and delivery fees

    Problem
    The fee depends on the distance between the store and an address that every customer types differently.
    Decision
    Geocoding with Nominatim (OpenStreetMap), address suggestions limited to the store’s region and distance computed with the Haversine formula to pick the fee band — with an optional per-neighborhood fee.
    Why
    Automatic, predictable fees without paying for a routing API.
    Trade-off
    Haversine measures straight-line distance, not the actual route — good enough for delivery bands.
  5. 05

    Explicit timezone

    Problem
    Cloud servers run on UTC, but “open from 6 pm to 2 am” has to hold in Rio’s local time, including shifts that cross midnight.
    Decision
    Opening hours and order dates are computed explicitly in America/Sao_Paulo, regardless of the server timezone.
    Why
    The store opens and closes on time in any deployment environment.
10

Results

Verifiable facts

  • Live at jmlanchesrj.com.br as the restaurant’s own sales channel.
  • Menu, orders, dashboard, inventory and finance integrated in a single system.

Project dimensions

commits
~115
pull requests
23
screens
17
route modules
19
MySQL tables
24
lines of JavaScript
~20k

Approximate repository figures. They describe the size of the system, not individual productivity or quality.

See the project livejmlanchesrj.com.br (opens in a new tab)