← Activity
Avatar Nguyen Ngoc Han

MadameYen

Restaurant Order Express

Full-stack restaurant ordering workspace.

  • frontend/ - Vite + React + Tailwind + shadcn/ui
  • backend/ - Express API bridge
  • .NET API - external production backend service

Local Development

From repository root:

npm install
npm run dev

Typical local URLs:

  • Frontend: http://127.0.0.1:8081
  • Express backend health: http://127.0.0.1:8787/health

Build

cd frontend
npm run build

Environment

  • Frontend env: frontend/.env.local
  • Backend env: backend/.env.local
  • Required backend bridge value: DOTNET_API_BASE
  • Optional backend auth value: DOTNET_API_KEY

Do not commit production secrets.

Docker

Recommended services:

  • frontend SPA
  • Express bridge
  • ASP.NET Core backend API

Build each service with its own Dockerfile. Use Docker Compose or the deployment platform network to connect the services.

Container environment checklist:

  • Set DOTNET_API_BASE in the Express container.
  • Set frontend API base URL only when the API is not served from the same origin.
  • Set CORS origins for the frontend URL.
  • Keep database, Square, and service keys in backend containers only.

Docker Deployment Order

  1. Build and run the .NET API container first.
  2. Build and run the Express bridge with DOTNET_API_BASE pointing to the .NET API.
  3. Build and run the frontend.
  4. Verify health checks and browser access.

Licence

Proprietary & Confidential — This software is the property of The Healthy Dev. All rights reserved.

↗ https://madameyen.orderexpress.au/