Skip to content

blairanderson/slack-inviter

 
 

Repository files navigation

Slack Community Inviter/Landing Page

A simple application, to help bootstrap your slack community.

Setup

  1. Signup for a slack team on their homepage(https://slack.com/)
  1. Publish this app, add your configurations.

  2. Submit your heroku url to https://keep-awake.herokuapp.com/ - add _ping for optimal performance (eg http://example.herokuapp.com/_ping )

Deploy

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

clone bundle rename .env file

mv .env.example .env

edit variables

SIDEKIQ_USERNAME=user
SIDEKIQ_PASSWORD=password
SLACK_TOKEN=yourslackapitoken
SLACK_SUBDOMAIN=yourslacksubdomain
TITLE="Title of your slack community?"
TOP_SUBTITLE="Come make some friends, share links, meet a lunch buddy."
BACKGROUND_IMAGE="http://i.imgur.com/vDADTWP.jpg"

start the server

rails s

Prerequisites

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

Required Configuration

Configuration items are stored in environment variables.

SIDEKIQ_USERNAME=user
SIDEKIQ_PASSWORD=password
SLACK_TOKEN=yourslackapitoken (an API token for an administrator of the organization from: https://api.slack.com/web)
SLACK_SUBDOMAIN= e.g., tech404 for tech404.slack.com (signup for slack)
TITLE="Title of your slack community?"
TOP_SUBTITLE="Come make some friends, share links, meet a lunch buddy."
BACKGROUND_IMAGE="http://i.imgur.com/vDADTWP.jpg"

About

A simple invitation system for your slack community

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 66.0%
  • HTML 23.5%
  • JavaScript 9.3%
  • CSS 1.2%