Skip to content

w3cj/next-start

Repository files navigation

Next Start

A basic Next.js starter.

Stack

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

  1. Install dependencies:
pnpm install
  1. Copy the .env file:
cp .env.example .env
  1. 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
  1. Start the database:
docker compose up
  1. Migrate the database:
pnpm run db:migrate
  1. Start the app:
pnpm run dev

Resources