swadhinbiswas ✨ feat(cli): harden auth, TLS, retries, and repo parsing · 1/22/2026
bdf41c6
58 lines · 1.1 KB
Raw Download

title: "From Zero to Production"
description: "End‑to‑end setup from local dev to a production‑ready instance."

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

1) Local setup

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).

2) Database migrations

npm run db:push

3) Create admin user

bun run scripts/seed-admin.ts

4) Start the server

npm run dev

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

5) Production deployment

For production, use Docker:

docker-compose up -d

Then seed the admin user inside the container:

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

Next steps