Skip to content

diwashbhattarai999/NextStarter

Repository files navigation

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.