Next Start
A basic Next.js starter.
- Next Start
- Stack
- Branches
- Setup
- Resources
Stack
- Linting / Code Style
- eslint
- eslint-config-prettier
- eslint-plugin-check-file
- eslint-plugin-n
- prettier
- @trivago/prettier-plugin-sort-imports
- prettier-plugin-tailwindcss
- Environment Variables
- dotenv
- dotenv-expand
- @t3-oss/env-nextjs
- cross-env
- Styles / UI
- tailwindcss
- @nextui-org/react
- next-themes
- @tabler/icons-react
- Validation
- zod
- @conform-to/zod
- drizzle-zod
- Forms
- Database
- drizzle-orm
- postgres
- drizzle-kit
- Authentication
- next-auth
- @auth/drizzle-adapter
- Auth.js Drizzle Adapter Documentation
Branches
The main branch contains the entire setup. The following branches build on each other from top to bottom:
- base
- eslint / prettier settings
- nextui
- layout / styles
- dark / light theme toggle
- typesafe-env
- typesafe environment variables
- next-auth
- google oauth with no database
- drizzle / main
- basic drizzle schema with users / accounts / sessions
Setup
- Install dependencies:
- Copy the
.env file:
- Update the following values in the
.env file:
NEXTAUTH_SECRET=your-value-here
GOOGLE_CLIENT_ID=your-value-here
GOOGLE_CLIENT_SECRET=your-value-here
- Start the database:
- Migrate the database:
- Start the app:
Resources
- Next.js Discord FAQs
- "Module not found" error on deployment but build works fine locally
- Bulletproof React