A modern full-stack template with TanStack Start, React, Prisma, and PostgreSQL.
# Clone the template
npx degit MatthewSaintBull/TanstackStartTemplateEmpty my-app
cd my-app
# Run the automated setup (installs everything and starts Docker)
# macOS/Linux:
npm run setup
# Windows:
setup.batThat's it! 🎉 The setup script will:
- ✅ Install all dependencies
- ✅ Configure environment variables
- ✅ Start Docker containers with PostgreSQL
- ✅ Set up Prisma
- ✅ Open your app at http://localhost:3000
If you prefer to set things up manually:
npm install
npm run docker:upVisit http://localhost:3000
📖 Detailed Installation Guide - Step-by-step setup and troubleshooting
- Set up your PostgreSQL database
- Update
.envwith your database URL - Run migrations:
npx prisma migrate dev npx prisma generate
- Start dev server:
npm run dev
- Docker Setup Guide - Complete Docker Compose setup with hot reload
- Prisma + Docker Guide - Running migrations and managing your database in Docker
- TanStack Start Docs - Learn more about TanStack Start
- Framework: TanStack Start
- UI: React 19
- Styling: Tailwind CSS 4
- Database: PostgreSQL (via Docker)
- ORM: Prisma 7
- Build Tool: Vite 7
| Script | Description |
|---|---|
npm run setup |
🚀 Complete automated setup |
npm run dev |
Start development server |
npm run build |
Build for production |
npm run docker:up |
Start Docker containers |
npm run docker:down |
Stop Docker containers |
npm run docker:logs |
View application logs |
npm run docker:rebuild |
Rebuild containers |
npm run docker:clean |
Remove containers and volumes |
✅ Hot reload in Docker (no rebuilds needed!)
✅ PostgreSQL with Docker Compose
✅ Prisma ORM with auto-migrations
✅ TypeScript throughout
✅ Tailwind CSS 4
✅ File-based routing with TanStack Router
After building your Prisma schemas in prisma/schema.prisma:
# With Docker (recommended)
docker exec -it tanstack-app npx prisma migrate dev --name init
# Local development
npx prisma generate
npx prisma migrate devMIT
Matteo Santoro (@MatthewSaintbull)