Skip to Content
Getting Started

Getting Started

Get MarkDocs running locally in under 5 minutes.

Prerequisites

  • Docker  and Docker Compose
  • Or: Node.js 18+ and PostgreSQL (for running without Docker)
git clone https://github.com/thakurkharel/markdocs.git cd markdocs cp .env.example .env docker compose up -d

This starts:

  • PostgreSQL on port 5432
  • MarkDocs app on port 3001

Open http://localhost:3001 .

Option B: Local Development

If you prefer running Next.js directly:

git clone https://github.com/thakurkharel/markdocs.git cd markdocs # Start just the database docker compose up -d db # Install dependencies and set up the database npm install npx prisma db push # Start the dev server npm run dev

The app runs on http://localhost:3001 .

Create Your Account

From the browser:

  1. Navigate to the app
  2. Click Sign Up
  3. Choose a handle (e.g. @yourname) and password

Or from the CLI:

curl -fsSL https://markdocs.sh/install.sh | bash markdocs signup --url http://localhost:3001 --handle yourname markdocs setup

Invite Others

MarkDocs uses invite links to add new users:

  1. Go to Settings
  2. Click Create Invite
  3. Share the invite link with your team
  4. They sign up using the invite code

Environment Variables

VariableDefaultDescription
DATABASE_URLPostgreSQL connection string
DIRECT_URLDirect PostgreSQL URL (for Prisma)
JWT_SECRETchange-me-to-a-random-secretSecret for signing auth tokens
PORT3001App port
POSTGRES_PASSWORDmarkdocsDatabase password (Docker only)

Next Steps

Last updated on