An open API service indexing awesome lists of open source software.

https://github.com/lemoncloud-io/codes-monorepo-template

Codes Common Monorepo Template
https://github.com/lemoncloud-io/codes-monorepo-template

aistudio eureka-codes monorepo refactoring

Last synced: 6 months ago
JSON representation

Codes Common Monorepo Template

Awesome Lists containing this project

README

          

# codes-monorepo-projects

Monorepo with `lemon-core` based `Serverless` API and `React` frontend

## Architecture

```txt
┌───────────────────────────────────────────────┐
│ 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

```bash
npm run backend
```

### Run Web only

```bash
npm run frontend
```

Web will be available at

## AI Refactor ft. Gemini

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

### Run Refactor

```bash
# preparing before refactoring. (required to unzip file in sample folder)
./prepare.sh

# refactoring backend w/ gemini
./refactor-backend.sh

# refactoring frontend w/ gemini
./refactor-frontend.sh

# or simply run both in same
./refactor-simply.sh
```

## License

ISC