Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seratch/serverless-slack-bolt-aws
Read this issue first - https://github.com/slackapi/bolt/issues/361
https://github.com/seratch/serverless-slack-bolt-aws
Last synced: 16 days ago
JSON representation
Read this issue first - https://github.com/slackapi/bolt/issues/361
- Host: GitHub
- URL: https://github.com/seratch/serverless-slack-bolt-aws
- Owner: seratch
- Created: 2019-07-22T10:44:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T00:34:50.000Z (over 4 years ago)
- Last Synced: 2024-10-13T17:45:41.453Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://github.com/slackapi/bolt/issues/361
- Size: 2.93 KB
- Stars: 44
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-slack-bolt-aws⚡️
If you'd like to start using [Slack's Bolt⚡️](https://slack.dev/bolt/) with a minimum settings, this [Serverless](https://serverless.com/) template is perfect for you!
```bash
# node 10.13+ required
# 0) Create a new project with this template
npm i -g serverless
serverless create \
--template-url https://github.com/seratch/serverless-slack-bolt-aws/tree/master \
--path hello-bolt# 1) Slack App Configuration
# Go to https://api.slack.com/apps
# - Create a Slash command named `/echo` (Request URL can be a dummy)
# - Create a bot user @{bot-name}
# - Install the app to your workspace# 2) App Setup
npm i -g serverless
npm i
cp _env .env
vi .env # set SLACK_SIGNING_SECRET, SLACK_BOT_TOKEN
source .env# 3) Local Development
sls offline # local dev
ngrok http 3000 # on another terminal window# Update the Request URL for the slash command with the ngrok URL
# 4) Make sure it works on Slack
# /invite @{bot-name}
# /echo something# 5) Deploy to AWS
export AWS_ACCESS_KEY_ID=xxx
export AWS_SECRET_ACCESS_KEY=yyy
sls deploy# Update the Request URL for the slash command with the AWS URL
```