bolt-js-getting-started-app
bolt-js-getting-started-app copied to clipboard
Getting Started Slack app using ⚡️ Bolt for JavaScript
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!
- Browse to slackapi/bolt-js/issues
- Create a new issue
- Select the
[x] examplescategory
See you there and thanks for helping to improve Bolt for everyone!