Nextjs Basic Boilerplate

This is a basic boilerplate for Nextjs projects. It's includes:

  • Nextjs
  • Eslint (Eslint Javascript Standart)
  • Prettier
  • Husky (pre-commit - Lint and Check Build)
  • Next Auth V5 (Credentials Provider and Google)
  • Prisma

Environment Variables

  • NEXTAUTH_URL (Your App URL)
  • NEXTAUTH_SECRET (Your Next Auth Secret)
  • IDENTIFIER_PREFIX (It's for ID Prefix -> ex. iz_skwo2239sik2s023nd)
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET

How to use it :

  1. Clone this repo / Use as Template
  2. Install dependencies
npm install
  1. Create .env.local file and add environment variables
  2. Do prisma migration
npm run db:migrate
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 with your browser to see the result.