Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.11 KB

File metadata and controls

20 lines (17 loc) · 1.11 KB

Netlify Functions x Slack Bolt JS

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.

Getting started

  1. Install all node dependencies using npm install.
  2. Install the Netlify Dev CLI tool using npm install netlify-cli -g.
  3. Create an .env file 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"
  1. Link Netlify site wit this code folder by running the command npm run link.
  2. Build the project using npm run build. This will also run the unit tests.
  3. Finally, execute the command npm run go to start a local instance of the Netlify Function.

What is the expected output?

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.


Follow Clyde D'Souza on Twitter and Medium