Monorepo template with pnpm, turbo, NestJS, React (Vite), TypeORM, oRPC contracts, and a local mock S3 (s3rver).
apps/
backend/ — NestJS API
frontend/ — React + Vite
bucket/ — local mock S3 (s3rver)
packages/
shared/ — shared types and constants
database/ — TypeORM data source and entities
contracts/ — API contracts (oRPC)
cp .env.example .env
pnpm install
pnpm dev
| Service |
Port |
| Frontend |
3000 |
| Backend |
4001 |
| Mock S3 |
4568 |
| Command |
Description |
pnpm dev |
Start all apps in parallel |
pnpm build |
Build all packages and apps |
pnpm lint |
Lint all packages and apps |
pnpm test |
Run tests |
pnpm clean |
Remove build artifacts |
- Use this repo as a GitHub template or clone it.
- Find-and-replace
monorepo-template with your project name.
- Update
.env with your database and S3 settings.
- Extend
packages/contracts, packages/database, and apps/backend for your domain.
apps/bucket/data/ is gitignored — s3rver creates it at runtime.
- oRPC contracts in
packages/contracts are defined but not yet wired to the NestJS backend. Connect them when you add your first API module.