This is a blank Bolt for JavaScript template app used to start building new Slack apps.
Before getting started, make sure you have a development workspace where you have permissions to install apps. If you don’t have one setup, go ahead and create one.
Join the Slack Developer Program for exclusive access to sandbox environments for building and testing your apps, tooling, and resources created to help you build and grow.
- Open https://api.slack.com/apps/new and choose "From an app manifest"
- Choose the workspace you want to install the application to
- Copy the contents of manifest.json into the text box that says
*Paste your manifest code here*(within the JSON tab) and click Next - Review the configuration and click Create
- You'll be redirected to the app settings page for your app. Click Install App in the left hand menu then Install to Workspace and Allow on the screen that follows.
Before you can run the app, you'll need to gather some environment variables.
- Bot token: Open your app settings page, click OAuth & Permissions in the left hand menu, then copy the Bot User OAuth Token.
- App token: Click Basic Information from the left hand menu and follow the steps in the App-Level Tokens section to create an app-level token with the
connections:writescope.
Once you have these, export both in a shell for following processes:
export SLACK_BOT_TOKEN=xoxb-example
export SLACK_APP_TOKEN=xapp-1-example# Clone this project onto your machine
git clone https://github.com/slack-samples/bolt-js-blank-template.git
# Change into this project directory
cd bolt-js-blank-template
# Install dependencies
npm install
# Run Bolt server
npm startAt this point a message should appear in the terminal that notes the Bolt app is running! It doesn't do much else at the moment.
# Run lint for code formatting and linting
npm run lintTo learn more about developing Slack apps, visit the following pages: