Skip to content

From Zero to Production

This tutorial walks from a clean clone to a production‑ready deployment.

Terminal window
git clone https://github.com/swadhinbiswas/OpencodeHub.git
cd OpenCodeHub
npm install
cp .env.example .env

Update the required secrets in .env (JWT_SECRET, SESSION_SECRET, INTERNAL_HOOK_SECRET, SITE_URL).

Terminal window
npm run db:push
Terminal window
bun run scripts/seed-admin.ts
Terminal window
npm run dev

Open the app at http://localhost:3000 and log in.

For production, use Docker:

Terminal window
docker-compose up -d

Then seed the admin user inside the container:

Terminal window
docker-compose exec app bun run scripts/seed-admin.ts