Template repository to run a Slack app using Bolt JS framework on a Netlify Function. Fork this repository, follow the steps below and get your Slack app running within minutes.
- Install all node dependencies using npm install.
- Install the Netlify Dev CLI tool using npm install netlify-cli -g.
- Create an .envfile and paste the following contents, replacing the secret and bot token with your values from Slack.
SLACK_SIGNING_SECRET="PASTE CONTENTS HERE"
SLACK_BOT_TOKEN="PASTE CONTENTS HERE"
- Link Netlify site wit this code folder by running the command npm run link.
- Build the project using npm run build. This will also run the unit tests.
- Finally, execute the command npm run goto start a local instance of the Netlify Function.
Assuming you've got your Slack app covered, when you a post a message in the channel, the app should send a message in the same channel with a "Hello, world" message.