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-08