ForkDocs
Self-host

Quickstart

Prerequisites, install Fork from source, and apply database migrations.

Prerequisites

Before you run Fork locally, gather:

RequirementNotes
BunUsed for dev, build, start, and test in this repo.
PostgreSQLRequired for Prisma; use a connection string in DATABASE_URL.
ClerkApplication with publishable and secret keys for auth.
SupabaseProject with a storage bucket for assets; server needs service role (or equivalent) for uploads.

Install

From the repository root:

bun install

Prisma client generation runs as part of the web app’s install/build flow (postinstall / build).

Database

Apply migrations (development):

bun run db:migrate

Use a dedicated database for local development. For integration-heavy tests, prefer a separate test database when setting DATABASE_URL.

Environment

Create .env.local at the repo root or under apps/web/ — Prisma resolves either location. See Environment variables for the full list.

Run the app

bun run dev

Open the URL shown in the terminal (often http://localhost:3000).

Documentation site

The Fumadocs app runs on port 3001 by default:

bun run docs:dev

Then open http://localhost:3001/ for this documentation.

Next

On this page