Next.js Template - NextStarter

Next.js NextAuth Tailwind CSS ESLint Prettier Commitlint Husky GitHub Actions

Kickstart your Next.js projects with this template featuring authentication using NextAuth v5, Tailwind CSS for styling, and the latest Next.js 14. It comes pre-configured with ESLint, Prettier, Commitlint and Husky for a solid development setup. Perfect for modern, secure web applications.

[!WARNING]
This app is a work in progress

Features

  • ๐Ÿš€ Next.js with App Router
  • โœ… Type checking TypeScript
  • ๐ŸŽจ Integrate with Tailwind CSS
  • ๐Ÿ”’ Authentication with NextAuth v5 Auth.js: Sign up, Sign in, Sign out, Forgot password, Reset password, and more.
  • ๐Ÿ”„ Social Auth (Google & GitHub)
  • ๐Ÿ’ผ Type-safe ORM with PrismaORM and PostgreSQL
  • ๐Ÿ“ Form with React Hook From
  • ๐Ÿ” Validation library with Zod
  • ๐Ÿงน Linter with ESLint
  • ๐Ÿ–Œ๏ธ Code Formatter with Prettier
  • ๐Ÿถ Husky for Git Hooks
  • ๐ŸŽฏ Lint-staged for running linters on Git staged files
  • ๐Ÿ” Lint git commit with Commitlint
  • ๐Ÿš€ Run tests on pull request with GitHub Actions
  • ๐Ÿ“‚ Absolute Imports using @ prefix
  • ๐Ÿ” SEO metadata, Sitemap.xml and robots.txt with next-sitemap
  • ๐Ÿ“ˆ Maximize lighthouse score\
  • ๐Ÿ›Ž๏ธ Sonner for toasts
  • ๐Ÿ“ค Uploadthing for file uploads
  • ๐ŸŽจ Lucide-react for icons
  • ๐ŸŒ— Next-themes for dark and light mode
  • ๐Ÿ”„ Next-js-toploader for smooth page transitions
  • ๐Ÿ“ง Resend for sending email
  • ๐ŸŒ Multi-language (i18n) with next-intl (Unstable)

Features to be implemented (Soon):

  • Payment Integration with esewa, khalti, stripe (anyone or maybe all)
  • Framer motion or gsap for animation
  • Analytics

Getting Started

  1. Clone the repository:
pnpm create next-app --example "https://github.com/diwashbhattarai999/NextStarter"
  1. Install dependencies using pnpm:
pnpm install
  1. Copy .env.example to .env.local or .env and update the variables.
cp .env.example .env
  1. Start the development server:
pnpm dev
  1. Open http://localhost:3000 in your browser

License

This project is licensed under the MIT License - see the LICENSE file for details.

Top categories

Loading Svelte Themes