Prerequisites
Before you begin, make sure you have:- Bun v1.3.7 or later installed
- PostgreSQL database running
- Git installed
If you haven’t installed these yet, check out the Installation Guide for detailed setup instructions.
Quick Start in 5 Minutes
# Generate using: openssl rand -base64 32
BETTER_AUTH_SECRET=your_generated_secret_here
# Generate using: bunx pglaunch -k
POSTGRES_URL=postgresql://user:password@localhost:5432/database
What’s Running?
When you runbun dev, Turborepo orchestrates the following processes:
Next.js Frontend (Port 3000)
Next.js Frontend (Port 3000)
The frontend application built with:
- Next.js 16 for the React framework
- Tailwind CSS for styling
- Shadcn UI for components
- TanStack Query for data fetching
- Better Auth client for authentication
Hono Backend API (Port 4000)
Hono Backend API (Port 4000)
The backend API server featuring:
- Hono web framework
- Drizzle ORM for database queries
- Better Auth for authentication
- Scalar API documentation at
/api/docs - Rate limiting with configurable limits
- OpenAPI auto-generated specification
Understanding the Development Workflow
Making Your First Change
Let’s make a simple change to see hot reloading in action:Modify the Frontend
Open
web/next/src/app/page.tsx and make a change to the homepage.The page will automatically reload in your browser.Add a New API Route
Create a new route in The API will automatically restart with your changes.
api/hono/src/routers/:Available Scripts
Here are the most commonly used commands:Project Structure Overview
ZeroStarter uses a monorepo structure organized with Turborepo:Learn More
Explore the detailed project structure and organization
Next Steps
Now that you have ZeroStarter running, explore these guides:Architecture
Understand the tech stack and architectural decisions
Type-Safe API
Learn how to use the end-to-end type-safe API client
Authentication
Set up OAuth providers and user authentication
Database
Work with the database using Drizzle ORM
Getting Help
If you run into any issues:- Check the Installation Guide for common problems
- Review the full documentation
- Open an issue on GitHub
- Follow @nrjdalal for updates