Setup Guide
Prerequisites
- Node.js >= 18.0.0
- pnpm >= 8.0.0
Installation
- Clone the repository
- Install dependencies:
pnpm install
- Copy environment variables:
cp env.example .env
- Configure S3 credentials in
.env:
S3_ENDPOINT=https://gateway.storjshare.io
S3_BUCKET=gitbucket
S3_REGION=us-east-1
S3_ACCESS_KEY=your-access-key
S3_SECRET_KEY=your-secret-key
For GitHub Packages authentication (to install @decoperations/s3worm):
export GITHUB_TOKEN=your-github-token
Development
Start the development server:
pnpm dev
This will start the Next.js app at http://localhost:3000.
Building
Build all packages:
pnpm build
Type Checking
Run TypeScript type checking:
pnpm type-check
Building the CLI
The gib CLI lives at apps/cli/. To build the binary:
pnpm --filter @gitbucket/gib build
# Binary at apps/cli/dist/index.js
Or run it directly during development:
pnpm --filter @gitbucket/gib dev -- --help
Full CLI reference: CLI.md.
Project Structure
apps/web/— Next.js application (the platform)apps/cli/—@gitbucket/gibCLIpackages/entities/— domain entity classespackages/storage/— pluggable storage adapters + the sharedGitEnginedocs/— documentation
Next Steps
- Implement authentication (JWT, password hashing)
- Add server-side pack-aware reads to
GitEnginesogib push --packcan be enabled - Build out UI for branch/file/diff browsing
- PR workflow UI