Skip to content

teach-bot/simple-slapp-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Simple Slapp Starter

Getting started with Slapp (a Slack App framework) or slack apps in general can be difficult but hopefully these instructions will make it easier.

Setup

Step 0 | Clone this repository & run npm install

Clone this repo to your computer and run these commands

git clone git@github.com:teach-bot/simple-slapp-starter.git
cd simple-slapp-starter
npm install

# Install other things we need 
brew cask install ngrok

Open a new terminal window and run

ngrok http 3000

In the original terminal window run

npm start

Step 1 | Create a Slack App & Configure Permissions

Visit https://api.slack.com/apps and click "Create New App"

Step 1 A

Fill out the form as shown below πŸ‘‡

Step 1 B

Click "Bot Users"

Step 1 C

Click "Add a Bot User"

Step 1 D

Fill out the form as shown below πŸ‘‡

Step 1 E

Click Event Subscriptions and then the toggle

Step 1 H

Follow these steps to add the ngrok url πŸ‘‡

Step 1 I

Scroll down and add the message.im bot permission. **Be sure to press "Save Changes" when you're done.

Step 1 J

Click "Install App" on the left & then "Install App to Workspace" then click Authorize on the following screen

Step 1 F

Copy the values for the Installed App Settings page to your ".env" file

Step 1 G

Copy the value of your verification token to you ".env" file.

Step 1 K

Step 2 | Test your setup in slack

Open the Slack Team that has your bot installed, go to the direct message and try typing echo followed by anything you want.

Step 2 A

About

Really simple starter code to play with the slapp framework πŸ‘

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors