Build from Source
Build from source only if you need custom builds, local development, or contribution work. For normal installation, use Release Package or Docker.
Requirements
- Go 1.23+
- Node.js and pnpm if you need to build frontend assets
- SQLite or MySQL 8+
Install Go
Download Go from the official site:
Verify installation:
bash
go versionOptional Go Proxy
If dependency downloads are slow, set a Go proxy:
bash
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=sum.golang.org
go env -w GO111MODULE=onCheck result:
bash
go env | grep GOPROXYBuild
From the source repository:
bash
go mod download
go build -o bbs-go main.goIf you are working from the full project repository, use the project build scripts documented in the repository README.
Run and Install
Start the compiled program:
bash
./bbs-goOpen:
text
http://localhost:8082/installComplete the installer the same way as release-package installation.
