This repository serves as a boilerplate for creating scalable and modern web applications using Next.js. It is designed to evolve with additional features and improvements over multiple versions, making it a powerful starting point for new projects.
- Create Next.js app using pnpm
- Enable PWA (Progressive Web App) support
- Integrate code quality tools (e.g., ESLint, Prettier, commitlint with husky)
- Setup environment variables management
- link preview
- Configure sitemap and robots.txt
- Implement next-intl for translations and translated routes
- Add translation language check to ensure proper localization
- Introduce Shadcn UI component library
- Merge Tailwind CSS classes using tailwind-merge and utility function
cn
(potential conflict with v4) - Add next-theme for theming support (light/dark mode)
- Support RTL (Right-to-Left) languages and a mechanism for reversing layout for RTL languages
- Integrate zod and react-hook-form for robust form validation and management
- Implement server-side actions using next-safe-action
- Add Optimistic UI updates for better user experience
- Set up data fetching using react-query
- Manage application state centrally using zustand
- Set up next-auth for authentication and user management, including OAuth and custom credentials
- Create a CI/CD pipeline using GitHub Actions
- Support deployment to Vercel and Netlify
- Integrate drizzle for database management to build full-stack applications
- End-to-end type safety for separate backend (openapi-typescript)
- animations
- push notification and offline mode with serwist
- https://github.com/khmyznikov/pwa-install
- Clone the repository
git clone https://github.com/sahandsn/nextjs-boilerplate.git