Documentation
¶
Overview ¶
Command cms generates a new website built on the cms module.
From an empty directory:
go run github.com/tsawler/cms/cmd/cms@latest init mysite cd mysite docker compose up -d go mod tidy go generate . go run .
Or install it once and use it anywhere:
go install github.com/tsawler/cms/cmd/cms@latest cms init mysite
init never overwrites a file that already exists unless -force is given, so it is safe to re-run inside a project that has moved on — a second run picks up starter files the first one did not write.
This command deliberately depends on nothing but the standard library and the scaffold package, so that fetching it with @latest does not pull down the database drivers, the AWS SDK, and testcontainers along the way.
Click to show internal directories.
Click to hide internal directories.