Skip to content

Getting Started Slack app using ⚡️ Bolt for JavaScript

License

Notifications You must be signed in to change notification settings

SoufGuy76/bolt-js-getting-started-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started ⚡️ Bolt for JavaScript

Slack app example from 📚 Getting started with Bolt for JavaScript tutorial

Overview

This is a Slack app built with the Bolt for JavaScript framework that showcases responding to events and interactive buttons.

Running locally

0. Create a new Slack App

  • Go to https://api.slack.com/apps
  • Click Create App
  • Choose a workspace
  • Enter App Manifest using contents of manifest.yaml
  • Click Create

Once the app is created click Install to Workspace Then scroll down in Basic Info and click Generate Token and Scopes with both scopes

1. Setup environment variables

# Replace with your bot and app token
export SLACK_BOT_TOKEN=<your-bot-token> # from the OAuth section
export SLACK_APP_TOKEN=<your-app-level-token> # from the Basic Info App Token Section

2. Setup your local project

# Clone this project onto your machine
git clone https://github.com/slackapi/bolt-js-getting-started-app.git

# Change into the project
cd bolt-js-getting-started-app/

# Install the dependencies
npm install

3. Start servers

npm run start

4. Test

Go to the installed workspace and type Hello in a DM to your new bot. You can also type Hello in a channel where the bot is present

Contributing

Issues and questions

Found a bug or have a question about this project? We'd love to hear from you!

  1. Browse to slackapi/bolt-js/issues
  2. Create a new issue
  3. Select the [x] examples category

See you there and thanks for helping to improve Bolt for everyone!

About

Getting Started Slack app using ⚡️ Bolt for JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%