A full-stack todo application built with Bun, Next.js, and PostgreSQL.
# Install dependencies
bun install
# Set up database (copy .env.example and add your DATABASE_URL)
cp .env.example .env.local
# Seed the database
bun run db:seed
# Start development server
bun devOpen http://localhost:3000 in your browser.
- Bun installed
- PostgreSQL database (local or cloud)
You need a PostgreSQL database. You can use:
- Local: Install PostgreSQL and create a database
- Cloud: Neon, Supabase, Railway, or Vercel Postgres
Add your connection string to .env.local:
DATABASE_URL="postgresql://username:password@hostname:port/database"Local PostgreSQL (macOS):
brew install postgresql
brew services start postgresql
createdb mydbThen add to .env.local:
DATABASE_URL="postgresql://$(whoami)@localhost:5432/mydb"- Runtime: Bun
- Framework: Next.js
- Database: PostgreSQL (via Bun's native SQL API)
- UI: ShadCN + Tailwind CSS
- Validation: Zod
bun dev- Start development serverbun build- Build for productionbun start- Start production serverbun run db:seed- Seed the database (creates table and sample data)bun run lint- Run Biome linterbun run format- Format code with Biome
For deployment instructions and hosting options, see Bun's deployment guides.