ZOYKU火線榜

w3cj/next-start技術文件

A basic Next.js starter.

目錄大綱 (TOC) (4 章節)▾
多語言回退提示:當前倉庫原作者暫未發布在地化文件,已為您無縫切換至官方英文原版(English),排版及程式碼實例完整保真。
npm i next-start

Next Start

Important

All branches have been updated to the latest patched version of React / Next.js as of 2025-12-05. Be sure to update your deployments as well. See the notes here and here

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

文件鏡像歸檔自 GitHub 官方源路徑 · 造訪原專案 GitHub
最後同步快照:2026-11-09