This is a poll/survey app that is built using the next-gen developer platform of Slack.
Before getting started, make sure you have a development workspace where you have permissions to install apps. If you don’t have one set up, go ahead and create one. Also, please note that the workspace requires any of the Slack paid plans.
To use this sample, you first need to install and configure the Slack CLI. Step-by-step instructions can be found in our Quickstart Guide.
Start by cloning this repository:
# Clone this project onto your machine
$ slack create my-app -t slack-samples/bolt-python-starter-template -b future
# Change into this project directory
$ cd my-app
# Setup your python virtual environment
$ python3 -m venv .venv
$ source .venv/bin/activate
# Install the project dependencies
$ pip install -r requirements.txt
# Run flake8 from root directory for linting
flake8 *.py && flake8 functions/
# Run black from root directory for code formatting
black .
While building your app, you can see your changes propagated to your workspace
in real-time with slack run
. In both the CLI and in Slack, you'll know an app
is the development version if the name has the string (dev)
appended.
# Run app locally
$ slack run
⚡️ Bolt app is running! ⚡️
Once running, click the
previously created Shortcut URL associated with the
(dev)
version of your app. This should start a workflow that opens a form used
to send a message to a certain channel!
To stop running locally, press <CTRL> + C
to end the process.
Currently deploying to slack is not yet supported.
manifest.json
is a configuration for Slack CLI apps in JSON. This file will
establish all basic configurations for your application, including app name
and description.
All trigger configuration files live in here - currently empty.
Used by the CLI to interact with the project's SDK dependencies. It contains script hooks that are executed by the CLI and implemented by the SDK.