Back to Bolt Python

Getting Started with ⚡️ Bolt for Python

examples/getting_started/README.md

1.28.01.1 KB
Original Source

Getting Started with ⚡️ Bolt for Python

Slack app example from 📚 Building an App with Bolt for Python

Overview

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

Running locally

1. Setup environment variables

zsh
# Replace with your signing secret and token
export SLACK_BOT_TOKEN=<your-bot-token>
export SLACK_SIGNING_SECRET=<your-signing-secret>

2. Setup your local project

zsh
# Clone this project onto your machine
git clone https://github.com/slackapi/bolt-python.git

# Change into this project
cd bolt-python/examples/getting_started/

# Setup virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install the dependencies
pip install -r requirements.txt

3. Start servers

Setup ngrok to create a local requests URL for development.

zsh
ngrok http 3000
python3 app.py