Skip to content

indrazm/nextjs-typescript-basic

Repository files navigation

Nextjs Basic Boilerplate

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

  • Nextjs
  • Typescript
  • Eslint (Eslint Javascript Standart and with Typescript)
  • 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 or 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published