Skip to content

rutan/togelack

Repository files navigation

Togelack

Deploy

Slack Summary Service (like togetter).

How to deploy

How to run (development mode)

Requirement

  • Ruby
  • node.js

run rails server

$ bundle install
$ bundle rails s

run webpack dev server

$ yarn install
$ yarn start

env

requirement

  • RAILS_ENV
    • "production"
  • MONGOID_ENV
    • "production"
  • SLACK_TOKEN
    • ex. xoxp-1234567-12345-...
  • SLACK_CLIENT_ID
    • App client ID (ex. 1234567)
  • SLACK_CLIENT_SECRET
    • App client secret (ex. abcdef12345)
  • SLACK_TEAM_ID
    • ex. T1234567
  • SLACK_TEAM_NAME
    • ex. toripota
  • MONGO_URL
    • database url(ex. localhost:27017)

optional

  • SLACK_CHANNEL
    • notify slack channel (ex. general)
  • SLACK_ICON
    • notify slack icon (ex. 😄 or https://〜)
  • REDIS_URL
    • use redis cache (ex. redis:https://localhost)
  • PRIVATE_MODE
    • need slack login (ex. true or false)

LICENSE

MIT