Skip to content

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:

https://go.dev/dl/

Verify installation:

bash
go version

Optional 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=on

Check result:

bash
go env | grep GOPROXY

Build

From the source repository:

bash
go mod download
go build -o bbs-go main.go

If 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-go

Open:

text
http://localhost:8082/install

Complete the installer the same way as release-package installation.

Released under the GPL License.