An open API service indexing awesome lists of open source software.

https://github.com/srajiang/slack-subscribe

Sample application using Bolt JS and demonstrating a simple Subscribe in Slack use case
https://github.com/srajiang/slack-subscribe

bot slack slack-bot

Last synced: about 1 month ago
JSON representation

Sample application using Bolt JS and demonstrating a simple Subscribe in Slack use case

Awesome Lists containing this project

README

          

# Sample App: Subscribe in slack

This sample application is built with Bolt JS framework and does a simple demonstration of using the Subscribe in Slack functionality. For a more full-feature sample app, refer to:
https://github.com/slack-samples/subscribe-in-slack-and-metadata

#### Setup:
_prepare your development slack workspace_
1. (pre-GA) Ensure that workspace is flagged to test this feature (reach out to me).

_prepare your application_
1. For ease-of-development we recommend using ngrok: https://ngrok.com/
2. Start an ngrok tunnel listening on port 3000, `ngrok http 3000`
3. Update manifest.yml replacing `` with your domain (provided by ngrok)
4. Create a new Slack app from manifest
5. Add the following to your environment
```
export=SLACK_SIGNING_SECRET=
export=SLACK_CLIENT_SECRET=
export=SLACK_CLIENT_ID=
export=SLACK_BOT_TOKEN=
export=DOMAIN_VERIFICATION=
```
6. Start the application, `npm start`