Skip to content

Andreas-Pedersen/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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.3%
  • JavaScript 2.4%
  • CSS 0.3%