Skip to content
/ goki Public

Record the number of the "matte black stuff" exterminated so far

Notifications You must be signed in to change notification settings

ebiiim/goki

Repository files navigation

GOKI

Build Status Go Report Card MIT license

What is this?

A website that counts the number of cockroaches you've rid this year.

👉ゴキブリやっつけた!

Deploy

Deploy to Cloud Run

Prepare .env and run deploy.sh.

Deploy standalone

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

Environment Variables

  • 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)

Third Party Notice

Libraries

  • see go.mod

Pictures

About

Record the number of the "matte black stuff" exterminated so far

Resources

Stars

Watchers

Forks

Packages

No packages published