Skip to content

Development ​

How to build, run and contribute.

Repositories ​

RepoLanguageEntry
CloudHostGocmd/server, cmd/quickidc
FrontPageTypeScript / Reactsrc/main.tsx
CloudInitGomain.go
DocumentsMarkdown / Vuedocs/

Quick start ​

bash
# controller
git clone https://github.com/QuickIDC/CloudHost.git
cd CloudHost
go mod download
go run ./cmd/server --data-dir ./data

# frontend
cd FrontPage && npm install && npm run dev

# docs
cd Documents && npm install && npm run dev

Conventions ​

  • Handler → Service → Driver → Data; no business logic in handlers.
  • Platform changes must update engine_config.go.
  • New endpoints need tests in internal/api.
  • Frontend types live in src/types; avoid any.
  • Docs must match code for ports, flags and endpoint names.

Where to change what ​

TaskLocation
New platforminternal/driver/*_driver.go, interface.go, engine_config.go
New endpointinternal/api/app.go + handler + service
Tasks/schedulinginternal/task, internal/scheduler
Authinternal/auth, internal/middleware
UIFrontPage/src/pages
PluginsCloudHost/plugins/<name>

Before committing ​

bash
go build ./... && go vet ./... && go test ./...
npx tsc --noEmit && npm run build
npm run build            # Documents

Pages ​

Released under the AGPLv3 License.