content management
Headless cms for mobile and web apps
Quick Start
Set environment variables (example)
export APPLICATION_NAME=content-management
export CONSUL_IP=10.91.120.55
export CONSUL_PORT=8500
export CONSUL_ACL_TOKEN=7caf93ca-2112-2f84-3bc9-39e812983ed1
export LOGSTASH_IP=10.90.68.35
export LOGSTASH_PORT=30204
Set consul config
- Setup consul config file at ${CONSUL_IP}:${CONSUL_PORT}/ui (Example: "config.json")
- {
"application_name": "otp-api",
"databases": {
"postgres_db": {
"protocol":"localhost",
"host":"localhost",
"port":5432,
"username":"postgres",
"password":"postgres",
"database":"postgres",
"sslmode": "disable",
"timeout": 15,
"max_open_conns": 0,
"max_conn_lifetime": 0,
"google_auth_file": ""
}
},
"log": {
"level": "info"
},
"zipkin": {
"url": "http://10.90.68.35:30208"\
},
}
Build and start
$ docker-compose up -d
$ go run main.go
You should see the following message:
HTTP server listening at :8080
To view CMS Administrator, open these URLs in browser: