Skip to content

lemoncloud-io/codes-monorepo-template

Repository files navigation

codes-monorepo-template

Monorepo with lemon-core based Serverless API and React frontend

Architecture

┌───────────────────────────────────────────────┐
│       Monorepo Root (npm workspace)           │
└───────────────────────────────────────────────┘
                      │
          ┌───────────┴────────────┐
          │                        │ 
          ▼                        ▼ 
  ┌──────────────────┐    ┌──────────────────┐
  │  backend         │    │  frontend        │
  │  lemon-core API  │◄───┤  React SPA       │
  │  Port: 8000      │    │  Port: 3000      │
  └──────────────────┘    └──────────────────┘

Prerequisites

  • Node.js >= 22

Environment Variables

Web (apps/frontend)

Frontend calls API at http://localhost:8000 by default (configurable via VITE_API_URL).

Development

Run API only

npm run backend

Run Web only

npm run frontend

Web will be available at http://localhost:3000

AI Refactor ft. Gemini

Automatically splits a React app generated by AIStudio into a monorepo structure.

Run Refactor

# 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.sh

License

ISC

About

Codes Common Monorepo Template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •