Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

weaveworks/community-slack

 
 

Repository files navigation

Slack Inviter

An Amazon Lambda Slack Team invitation service.

Quick start

First, for and clone this repository!

Then:

  1. Get an Amazon Web Services account
  2. Get a Slack team account & an authentication token
  3. run npm install
  4. set environment variables:
  • SLACK_TOKEN should be the token
  • SLACK_TEAM should be the team, i.e. slack.com subdomain (e.g. weave-community for weave-community.slack.com)
  • ALLOW_ORIGIN either * or URL prefix of the UI (e.g. https://slack.weave.works)
  1. run npm run deploy (use -- to add any arguments)
    • e.g. for prod deployment in London region use npm run deploy -- --region eu-west-2 --stage prod

Once you have deployed the Lambda stack, you can deploy content of docs to Github pages (or elsewhere). After you run npm run deploy, you should run ./generate-page-config.sh and it will generate docs/config.js which will contains configuration variables. You want to track docs/config.js along with any other changes in your fork, as it needs to be hosted along with other HTML files in docs directory.

To test the function deployed in dev stage use index.html#dev, otherwise it defaults to one in prod stage.

About

An AWS Lambda based app for inviting users to Slack teams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.0%
  • Shell 28.0%