This is a generic Deno template used to build out Slack apps using the Slack CLI.
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.
To use this template, you first need to install and configure the Slack CLI. Step-by-step instructions can be found in our Quickstart Guide.
While building your app, you can see your changes propagated to your workspace
in real-time with slack run
. You'll know an app is the development version
because the name has the string (dev)
appended.
# Clone this project onto your machine
$ slack create my-app -t slack-samples/deno-hello-world
# Change into this project directory
$ cd my-app
# Run app locally
$ slack run
Connected, awaiting events
For an example of how to test a function, see
functions/sample_function_test.ts
. Test filenames should be suffixed with
_test
.
Run all tests with deno test
:
$ deno test
When you're done with development, you can deploy your app to a production
workspace using slack deploy
:
$ slack deploy
The app manifest contains the app's configuration. This file defines attributes like app name and description.
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.
Functions are reusable building blocks of automation that accept inputs, perform calculations, and provide outputs. Functions can be used independently or as steps in Workflows.
A Workflow is a set of steps that are executed in order. Each step in a Workflow is a function.
Workflows can be configured to run without user input or they can wait for input via form before continuing to the next step.
Triggers determine when Workflows are executed. A trigger file describes a scenario in which a workflow should be run, such as a user pressing a button or when a specific event occurs.
To learn more about developing with the CLI, you can visit the following guides:
To view all documentation and guides available, visit the Overview page.