A modern, feature-rich boilerplate for personal projects built with Next.js and various modern web technologies.
- Next.js 15 - Latest version with App Router and React Server Components
- TypeScript - Type safety across the entire project
- Internationalization - Support for multiple languages using next-international
- Authentication - Built-in authentication with Supabase
- Database Integration - Prisma ORM with PostgreSQL database support
- UI Components - Custom UI components with Tailwind CSS and Radix UI
- Dark/Light Mode - Theme switching capability with next-themes
- Form Validation - Client and server-side validation with Yup
- Supabase - Authentication and backend services
- Prisma - Type-safe ORM
- PostgreSQL - Database
- TypeScript
- Bun - Fast JavaScript runtime and package manager
├── actions/ # Server actions for auth and data operations
├── app/ # Next.js app directory with routes
│ └── [locale]/ # Internationalized routes
├── components/ # React components
│ ├── main-layout/ # Layout components (header, footer, etc.)
│ ├── signin/ # Sign-in related components
│ ├── signout/ # Sign-out related components
│ ├── signup/ # Sign-up related components
│ └── ui/ # Reusable UI components
├── lib/ # Utility functions and shared code
├── locales/ # Internationalization files
├── prisma/ # Prisma schema and configurations
│ ├── generated/ # Generated Prisma client
│ └── migrations/ # Database migrations
├── public/ # Static files
└── supabase/ # Supabase configuration
- Node.js (v18 or later)
- Bun (v1.0 or later)
- PostgreSQL database
-
Clone this repository
git clone <your-repo-url> cd boilerplate
-
Install dependencies
bun install
-
Set up environment variables
cp .env.example .env
Then edit the
.envfile with your configuration details. -
Run database migrations
bunx prisma migrate dev
-
Start the development server
bun dev
-
Open http://localhost:3000 to see your application
bun dev- Start the development server with Turbopackbun build- Build the application for productionbun start- Start the production serverbun lint- Run ESLint to check code quality
This project can be deployed to any platform that supports Next.js applications, such as Vercel.
bun buildThis project is available for personal use.