From Zero to Production
This tutorial walks from a clean clone to a production‑ready deployment.
1) Local setup
Section titled “1) Local setup”git clone https://github.com/swadhinbiswas/OpencodeHub.gitcd OpenCodeHubnpm installcp .env.example .envUpdate the required secrets in .env (JWT_SECRET, SESSION_SECRET, INTERNAL_HOOK_SECRET, SITE_URL).
2) Database migrations
Section titled “2) Database migrations”npm run db:push3) Create admin user
Section titled “3) Create admin user”bun run scripts/seed-admin.ts4) Start the server
Section titled “4) Start the server”npm run devOpen the app at http://localhost:3000 and log in.
5) Production deployment
Section titled “5) Production deployment”For production, use Docker:
docker-compose up -dThen seed the admin user inside the container:
docker-compose exec app bun run scripts/seed-admin.ts