LinkDen
Getting Started

Installation

Clone the repository, install dependencies, and get LinkDen running locally.

๐Ÿ’ป Installation

Get LinkDen running on your machine in under 5 minutes.

๐Ÿ“‹ Prerequisites

  • Bun 1.3+ -- Grab it from bun.sh.
  • Cloudflare account -- A free account is enough for development.

1. ๐Ÿ“‚ Clone and Install

git clone https://github.com/mrdemonwolf/linkden.git
cd linkden
bun install

Tip: bun install handles all apps and packages in the monorepo automatically.


2. โš™๏ธ Environment Setup

Copy the example file:

cp .env.example .env

Required Variables:

VariableDescriptionExample
BETTER_AUTH_SECRETSecret key for sessionsopenssl rand -base64 32
BETTER_AUTH_URLAPI server URLhttp://localhost:3000
CORS_ORIGINWeb frontend URLhttp://localhost:3001
NEXT_PUBLIC_SERVER_URLPublic API URLhttp://localhost:3000

3. ๐Ÿ—„๏ธ Database Setup

bun run db:push

This creates the tables needed to run.


4. ๐Ÿš€ Start Dev Servers

bun run dev
  • ๐ŸŒ Web App: http://localhost:3001
  • โš™๏ธ API Server: http://localhost:3000
  • ๐Ÿ“š Docs: http://localhost:3002

5. โœ… Verify It Works

  1. Visit: http://localhost:3001/admin/setup.
  2. Create Account: Enter your name, email, and password.
  3. Registration: The first user becomes the admin and registration locks automatically.
  4. Dashboard: You'll be redirected to the admin panel. You're all set!

Next Steps

On this page