A modern, feature-rich boilerplate for building scalable web applications with Next.js 15, React 19, and TypeScript.
-
Modern Stack
- Next.js 15 with App Router
- React 19
- TypeScript
- Tailwind CSS
- Prisma ORM
- NextAuth.js v5
-
Authentication
- OAuth providers support
- Protected routes
-
UI/UX
- Dark/Light mode
- Responsive design
- Modern animations
- Toast notifications
- Form validation
-
Developer Experience
- TypeScript
- ESLint
- Prettier
- Import sorting
- Tailwind sorting
- Turbopack support
- Bun support
- Husky
- Next.js 15.1.3
- React 19.0.0
- TypeScript 5.x
- Tailwind CSS 3.4.1
- Lucide Icons
- Next Themes
- Sonner (Toast notifications)
- React Hook Form 7.54.2
- Zod 3.24.1
- @hookform/resolvers
- NextAuth.js 5.0 (Beta)
- Prisma Adapter
- Prisma ORM 6.1.0
- Prisma Client
- ESLint 9.x
- Prettier 3.4.2
- Tailwind Merge
- Various Prettier plugins
- Clone the repository
git clone https://github.com/RomaLetodiani/nextjs-boilerplate
- Install dependencies
npm install
- Set up environment variables
cp .env.example .env
- Initialize database
npm run db:reset
- Start development server
npm run dev
dev
: Start development server with Turbopackbuild
: Build production applicationstart
: Start production serverlint
: Run ESLintformat
: Format code with Prettierdb:generate
: Generate Prisma clientdb:push
: Push database schemadb:reset
: Reset database
src/
βββ app/ # App router pages
β βββ (auth)/ # Authentication routes
β β βββ login/
β βββ (home)/ # Public pages
β β βββ about/
β β βββ blog/
β β βββ changelog/
β β βββ contact/
β β βββ docs/
β β βββ help/
β β βββ legal/
β β βββ pricing/
β β βββ resources/
β β βββ search/
β β βββ sitemap/
β β βββ status/
β β βββ layout.tsx # Home Layout
β β βββ page.tsx # Homepage
β βββ api/ # API routes
β βββ dashboard/ # Protected dashboard
βββ assets/ # Assets
β βββ hero.png # Hero Image
β βββ svgs # SVGs
βββ components/ # Reusable components
β βββ (auth)/ # Auth components
β βββ (home)/ # Public components
β β βββ views/ # Homepage sections
β βββ common/ # Shared components
β βββ dashboard/ # Dashboard components
βββ layout/ # Layout components
β βββ (auth)/ # Auth layout
β βββ (home)/ # Public layout
β β βββ header/
β β βββ footer/
β βββ dashboard/ # Dashboard layout
βββ lib/ # Library code
β βββ auth/ # Authentication
β βββ prisma/ # Database
β βββ logger # Logger
βββ types/ # TypeScript types
βββ utils/ # Utilities
The boilerplate includes pre-built legal pages:
- Privacy Policy
- Terms & Conditions
- Cookie Policy
- GDPR Compliance
- Service Level Agreement
- Data Processing Agreement
- Acceptable Use Policy
- Copyright Policy
- Refund Policy
- Node.js 18+
- npm/yarn/pnpm
- Database (PostgreSQL recommended)
DATABASE_URL=""
NEXTAUTH_URL=""
NEXTAUTH_SECRET=""
This project is licensed under the MIT License - see the LICENSE file for details.
Roman Letodiani
- LinkedIn: @roman-letodiani
- Email: Roman.Letodiani03@Gmail.com
Contributions, issues and feature requests are welcome!
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a pull request
This project leverages these amazing technologies:
If you find this project helpful, please consider:
- β Starring the project on GitHub
- π Opening issues for bugs or feature requests
- π Contributing with pull requests
- π’ Sharing the project with others
Join our community to get help, share ideas, and collaborate:
Made with β€οΈ by Roman Letodiani