This repository contains a React frontend and an Express API, split into separate apps for independent deployment.
apps/web: Vite + React frontendapps/api: Express + Supabase backendpackages/shared: Shared types and schemas
- Node.js 18+
Copy the example files and fill in your Supabase values:
apps/api/.env.example->apps/api/.envapps/web/.env.example->apps/web/.env
Frontend maintenance banner toggle:
VITE_MAINTENANCE_MODE=trueshows the maintenance banner.- Set
VITE_MAINTENANCE_MODE=falseto hide it.
Install dependencies once at the repo root:
npm install
This repo uses npm workspaces, so the root install also installs dependencies for apps/api, apps/web, and packages/shared.
Start both apps:
npm run dev
Or run them separately:
npm run dev:api
npm run dev:web
npm run build:api
npm run build:web
dd