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