Production-ready monorepo starter with Next.js, Elysia.js, and Prisma.
- 🚀 Next.js 16 - React framework with App Router
- ⚡ Elysia.js - Fast Bun-powered backend API
- 🗄️ Prisma - Type-safe database ORM
- 🔐 Authentication - JWT-based auth with email verification
- 📧 Resend - Transactional emails with React Email
- 🎨 Tailwind CSS v4 - Modern styling with shadcn/ui
- 📦 Turborepo - High-performance build system
# Clone the repository
git clone https://github.com/musayazlik/turbostack.git
cd turbostack
# Install dependencies
bun install
# Setup environment (automatically synced by branch)
bun run env:sync
# Push database schema
bun run db:push
# Start development server
bun run devProje, branch bazlı otomatik environment variable senkronizasyonu içerir. Her branch için farklı database kullanabilirsiniz:
- Otomatik: Git hook ile branch değiştirdiğinizde otomatik olarak doğru
.envdosyası seçilir - Manuel:
bun run env:synckomutu ile manuel olarak senkronize edebilirsiniz
Branch-specific env dosyaları:
apps/api/.env.development- Development branchapps/api/.env.lite- Lite branchapps/api/.env.master- Master branch
Yeni branch için env dosyası eklemek için apps/api/.env.{branch-name} dosyası oluşturun.
turbostack/
├── apps/
│ ├── frontend/ # Next.js frontend (port 3000)
│ └── backend/ # Elysia.js backend (port 3001)
├── packages/
│ ├── database/ # Prisma schema & client
│ ├── types/ # Shared TypeScript types
│ ├── validations/ # Zod schemas
│ └── ui/ # Shared UI components
└── docs/ # Markdown documentation
| Command | Description |
|---|---|
bun run dev |
Start all apps in development mode |
bun run dev:web |
Start only the web app |
bun run dev:api |
Start only the API |
bun run build |
Build all apps |
bun run db:push |
Push Prisma schema to database |
bun run db:studio |
Open Prisma Studio |
bun run polar:setup |
Setup Polar.sh payment system |
Deploy with one click:
Or manually:
# Install Vercel CLI
bun add -g vercel
# Deploy
cd apps/frontend && vercelThe Elysia.js API requires a platform that supports Bun runtime:
Visit the documentation for detailed guides.
Proprietary License - see LICENSE for details.
Usage Terms:
- ✅ Personal projects
- ✅ Commercial projects
- ❌ Redistribution to third parties
- ❌ Sharing with third parties (free or paid)