Monorepo with lemon-core based Serverless API and React frontend
┌───────────────────────────────────────────────┐
│ Monorepo Root (npm workspace) │
└───────────────────────────────────────────────┘
│
┌───────────┴────────────┐
│ │
▼ ▼
┌──────────────────┐ ┌──────────────────┐
│ backend │ │ frontend │
│ lemon-core API │◄───┤ React SPA │
│ Port: 8000 │ │ Port: 3000 │
└──────────────────┘ └──────────────────┘- Node.js >= 22
Frontend calls API at http://localhost:8000 by default (configurable via VITE_API_URL).
npm run backendnpm run frontendWeb will be available at http://localhost:3000
Automatically splits a React app generated by AIStudio into a monorepo structure.
# preparing before refactoring. (required to unzip file in sample folder)
./refactor-prepare.sh <app-in-sample-folder>
# refactoring backend w/ gemini
./refactor-backend.sh
# refactoring frontend w/ gemini
./refactor-frontend.shISC