Skip to content

Microservice that delivers rendered markdown pages

License

Notifications You must be signed in to change notification settings

roundpartner/go-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go CMS

CMS in Go

Testing

go test

Building

GOOS=linux GOARCH=amd64 go build
docker build -t go-cms .

Running

Run by providing the database connection and path to the documentation

go-cms \
    -conn="<username>:<password>@tcp(<hostname>:3306)/<schema>" \
    -port=7335 \
    -path=<path to documentation>

or with docker

docker run --rm -p 7335:7335 go-cms

Usage

Request the page by supplying the page id in the uri

curl localhost:7335/index