Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

tweag/lockitron-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lockitron events ➡ Slack

Accept Lockitron webhooks and send events to Slack to keep a log.

This app is meant to have as few dependencies as possible in production so that it has a fast startup time on Heroku. Currently, it only depends on rack in production.

Set up

  1. bundle install

  2. Create a .env from the example

    • SLACK_URL: Grab a webhook URL from Slack for the channel you want.
    • API_KEY: A random string. Generate one by running bin/generate-key.
    • RACK_ENV: Should be production in production. Otherwise, doesn't matter.
  3. Run locally with shotgun

  4. Your webhook URL will be something like https://example.com/?api-key=my-api-key-abc123

Testing

Against local server

bin/test

Against other server

bin/test http://example.com abc123-my-api-key

API key will be taken from .env if not specified.

Releases

No releases published

Packages

No packages published

Languages