A website that counts the number of cockroaches you've rid this year.
Prepare .env
and run deploy.sh
.
Prepare config.json
.
{
"server": {
"scheme": "https",
"address": "goki.nullpo-t.net",
"base_path": "/"
},
"web": {
"template_dir": "./views",
"static_dir": "./static",
"serve_static": true
},
"session": {
"key": "goki"
},
"twitter": {
"key": "TWITTER_CONSUMER_KEY",
"secret": "TWITTER_CONSUMER_SECRET",
"request_url": "https://api.twitter.com/oauth/request_token",
"authorize_url": "https://api.twitter.com/oauth/authorize",
"token_request_url": "https://api.twitter.com/oauth/access_token",
"callback_path": "/login/twitter/callback"
}
}
Run the server application.
./goki
GOKI_CONFIG
: Path to config file. (default./config.json
)TWITTER_CONSUMER_KEY
: Twitter consumer key. (override the value loaded from./config.json
)TWITTER_CONSUMER_SECRET
: Twitter consumer secret. (override the value loaded from./config.json
)- the rest: see
.env.sample
. (added many environment variables for containerization)
- see
go.mod