Documentation
Everything you need to know to get started with Next Starter Template.
Getting Started
Quick setup guide and prerequisites
Clone the repositoryInstall dependencies with npm installSet up environment variablesRun npm run dev to start development
Database Setup
Configure Prisma and PostgreSQL
Update DATABASE_URL in .envRun npx prisma generateRun npx prisma db pushUse npx prisma studio for GUI
Project Structure
Understanding the codebase layout
app/ - Next.js App Router pagescomponents/ - Reusable UI componentslib/ - Utilities and database clientprisma/ - Database schema and migrations
Deployment
Deploy to your preferred platform
Vercel: Connect repo and deployDocker: docker compose up -dFly.io: fly launch && fly deployRailway: Connect repo in dashboard
Environment Variables
Required configuration for your application
.env
# Database
DATABASE_URL="postgresql://user:password@localhost:5432/db"
# App
NEXT_PUBLIC_APP_URL="http://localhost:3000"
NODE_ENV="development"