Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.
/ invite Public archive
forked from tech404/inviter

This is the automatic invitation system (from tech404) we're going to use for PowerShell.Slack.com

Notifications You must be signed in to change notification settings

PoshCode/invite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tech404 inviter

The application behind the tech404 automatic invitation system

Usage

POST /invitations

To enqueue an invitation request:

curl -X POST \
  -H "Content-Type: application/json" \
  -d "{\"email\":\"[email protected]\"}" \
  http://localhost:3000/invitations

The route is meant to be used by a JavaScript client. You can whitelist CORS origins in config/application.rb.

Development

Prerequisites

  • PostgreSQL: brew install postgresql
  • Redis: brew install redis

Required Configuration

Configuration items are stored in environment variables.

  • SLACK_SUBDOMAIN: e.g., tech404 for tech404.slack.com
  • SLACK_TOKEN: an API token for an administrator of the organization
  • SIDEKIQ_USERNAME: username for the sidekiq administration area
  • SIDEKIQ_PASSWORD: password for the sidekiq administration area

Deployment

Deployed on Heroku. Ask @alindeman for access. In production, we run a puma process in the same dyno as a sidekiq worker. It's a hack to keep it free.

About

This is the automatic invitation system (from tech404) we're going to use for PowerShell.Slack.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 83.1%
  • HTML 13.2%
  • CSS 1.9%
  • JavaScript 1.8%