Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeverhart383/slack-app-playground


https://github.com/jeverhart383/slack-app-playground

Last synced: 14 days ago
JSON representation

Awesome Lists containing this project

README

        

This is a [Next.js](https://nextjs.org/) project created to demonstrate how to work with Slack resources in several different ways.

## Getting started

To get started, you can clone this repository to your local machine:

```
git clone https://github.com/JEverhart383/slack-app-playground.git
```

Then you can install the project's dependencies using `npm install`. To start the server in dev mode, run the `npm run dev` command.

Some of the Slack examples, like OAuth and interactivity, require a public HTTPS url, so consider installing [NGROK](https://ngrok.com/) to help connect your local server to the public internet. With your dev server running, the following command will generate a public url you can use in your Slack app settings:

```
ngrok http http://localhost:3000
```

## Authentication

In general, Slack authentication revolves around different [types of tokens](https://api.slack.com/authentication/token-types). The examples in this repository will illustrate both bot and user token examples.

### Installing as a bot

To obtain [a bot token](https://api.slack.com/start/quickstart), follow these instructions and then create a `.env.local` file and store the bot token as `SLACK_TOKEN` to be used in the examples.