Run the restaurant locally
Install and start each app with Node.js and Yarn, one terminal per app.
For the Full Stack package
Before you start: install Node.js 24 or newer and run corepack enable once. No database server is needed.
Open every terminal where the commands below expect it: inside food-studio-full-stack for the full stack, or next to the app's folder for a single-app package.
| App | Folder | Address |
|---|---|---|
| API | back-end | localhost:8000Local |
| Ordering website | storefront | localhost:3030Local |
| Staff dashboard | admin-dashboard | localhost:3031Local |
Start the API first: both frontends read all of their data from it.
Start the API
Install and configure
.env.exampleworks as it is for local development: SQLite on port8000.Having trouble?Terminalcorepack enable cd back-end yarn install cp .env.example .envCreate the database
yarn seedcreatesdatabase.sqlite, its tables and the demo restaurant: eight categories, 64 dishes with their pictures, the combo, four kitchens, the staff, and six weeks of orders, reviews and reward points. Running it again adds only what is missing.Terminalinback-endyarn seedStart the server
Terminalinback-endyarn devExpected result: localhost:8000/api/healthLocal answers
Having trouble?{"success":true,"data":{"status":"ok","database":"up"},"message":""}.
Start the API
Install and configure
.env.exampleworks as it is for local development: SQLite on port8000.Having trouble?Terminalcorepack enable cd food-studio-backend yarn install cp .env.example .envCreate the database
yarn seedcreatesdatabase.sqlite, its tables and the demo restaurant: eight categories, 64 dishes with their pictures, the combo, four kitchens, the staff, and six weeks of orders, reviews and reward points. Running it again adds only what is missing.Terminalinfood-studio-backendyarn seedStart the server
Terminalinfood-studio-backendyarn devExpected result: localhost:8000/api/healthLocal answers
Having trouble?{"success":true,"data":{"status":"ok","database":"up"},"message":""}.
Start the ordering website
In a second terminal:
Install and configure
The copied
.envpoints the website at the API on port8000.Terminalcd storefront yarn install cp .env.example .envStart it
Terminalinstorefrontyarn devExpected result: localhost:3030Local opens the website in English with the demo menu; Arabic is at
Having trouble?/ar.
Start the ordering website
The API is not part of this package. Start it first; the copied .env expects it at http://localhost:8000/api.
Install and configure
If your API runs somewhere else, set
NEXT_PUBLIC_API_BASE_URLin.envto its address, including/api.Having trouble?Terminalcorepack enable cd food-studio-website yarn install cp .env.example .envStart it
Terminalinfood-studio-websiteyarn devExpected result: localhost:3030Local opens the website with the menu from your API; Arabic is at
Having trouble?/ar.
Start the staff dashboard
In a third terminal:
Install and configure
The copied
.envpoints the dashboard at the API and its live notifications on port8000.Terminalcd admin-dashboard yarn install cp .env.example .envStart it and sign in
Terminalinadmin-dashboardyarn devExpected result: localhost:3031Local opens the sign-in form. Sign in with
Having trouble?owner@foodstudio.exampleand the passwordFoodDemo2026!.
Start the staff dashboard
The API is not part of this package. Start it first; the copied .env expects it at http://localhost:8000/api.
Install and configure
If your API runs somewhere else, set
NEXT_PUBLIC_API_BASE_URL(with/api) andNEXT_PUBLIC_WEBSOCKET_BASE_URL(without it) in.envto its address.Having trouble?Terminalcorepack enable cd food-studio-staff-dashboard yarn install cp .env.example .envStart it and sign in
Terminalinfood-studio-staff-dashboardyarn devExpected result: localhost:3031Local opens the sign-in form. Sign in with the owner account
Having trouble?owner@foodstudio.exampleand the passwordFoodDemo2026!, which a seeded API accepts.
Production build
The same folders, built once and then started. First set the API's .env for production: with NODE_ENV=production the API creates no tables on start, and it refuses to start while JWT_SECRET is empty or still the example value, or while CORS_ORIGIN is empty.
NODE_ENV=production
JWT_SECRET=paste-the-generated-secret-here
CORS_ORIGIN=http://localhost:3030,http://localhost:3031
FRONTEND_URL=http://localhost:3031
STOREFRONT_URL=http://localhost:3030Generate the secret with node -e "console.log(require('crypto').randomBytes(48).toString('hex'))". Then, in the API's folder, build it, create its tables once, and start it. yarn seed:prod adds the demo restaurant and its accounts; yarn db:sync:prod in its place creates empty tables with no accounts.
yarn build
yarn seed:prod
yarn start:prodProduction build of the frontends
In each frontend's folder, build once and start. The website serves on 3030 and the dashboard on 3031.
yarn build
yarn startThe frontends compile their .env in at build time, so run yarn build again after changing it. Before you deploy anywhere public, read the going live checklist.
Start over with fresh demo data
Stop the API, then delete the database file and seed it again, in the API's folder. This deletes everything you created.
rm -f database.sqlite* && yarn seedIn PowerShell:
Remove-Item database.sqlite*; yarn seed