Quickstart
Get your TurboStack project running locally in just a few steps.One-click deploy available! Skip the local setup and deploy directly to
Vercel with a single click.
Prerequisites
Bun 1.1+
Fast JavaScript runtime and package manager
Node.js 18+
Required for some development tools
- macOS
- Linux
- Windows
Installation
Configure Environment
Copy the example environment file:Update the
.env file with your configuration:- Required
- Email (Resend)
- Payments (Polar)
Setup Database
Push the Prisma schema to your database:
Don't have PostgreSQL?
Don't have PostgreSQL?
Start PostgreSQL with Docker:Then use this connection string:
Access Your Apps
Once the development server is running:| Application | URL | Description |
|---|---|---|
| 🖥️ Web | localhost:4100 | Next.js frontend |
| ⚡ API | localhost:4101 | Elysia.js backend |
| 📚 Swagger | localhost:4101/openapi | API documentation |
| 📖 Docs | localhost:4102 | This documentation |
Useful Commands
Development
Database
Build & Test
Type Check
Troubleshooting
Port already in use
Port already in use
If you see
EADDRINUSE error:Database connection failed
Database connection failed
- Make sure PostgreSQL is running
- Check your
DATABASE_URLin.env - Ensure the database exists:
Prisma client not generated
Prisma client not generated
If you see Prisma errors, regenerate the client:
Bun installation issues
Bun installation issues
Try reinstalling Bun:
Next Steps
Authentication
Set up user registration, login & email verification
Email Service
Configure Resend for transactional emails
Payments
Integrate Polar.sh for subscriptions
Database Schema
Customize your database models