This is an attempt to make a Headless CMS in go
.
You can find the API documentation here.
- Go 1.10
- dep for installing the dependencies
- go-swagger for generating the server stubs
- A database, e.g. PostgreSQL
First, generate the server stub from the swagger definition
./gen.sh
Install the dependencies using dep
dep ensure
Build the executable
./build.sh
Run the binary
./main
Run --help
to check the available parameters
./main --help
Usage of main:
-database string
The database name (default "cms")
-db-host string
The database hostname (default "localhost")
-db-port string
The database port (default "5432")
-dialect string
The database dialect (default "postgres")
-pass string
The database password (default "test")
-port int
Port to run this service on (default 3000)
-user string
The database username (default "test")
You can find a dashboard for the project here.
- Swagger, API definition
- go-swagger 0.15.0, generate server stub based on swagger definition
- gorm, database operations
Open sourced under the MIT license.