Skip to content

Latest commit

 

History

History
117 lines (94 loc) · 4.06 KB

README.md

File metadata and controls

117 lines (94 loc) · 4.06 KB

Based on CJ's next-start

https://github.com/w3cj/next-start

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