Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khanguslee/slack-oauth-poc
https://github.com/khanguslee/slack-oauth-poc
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/khanguslee/slack-oauth-poc
- Owner: khanguslee
- Created: 2023-10-26T05:43:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-27T03:16:00.000Z (about 1 year ago)
- Last Synced: 2024-10-02T12:41:14.952Z (about 1 month ago)
- Language: TypeScript
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack OAuth POC
Quick POC to test out OAuth with Slack Apps.
## Getting Started
Create `.env` file in `packages/backend`
```
SLACK_CLIENT_ID=""
SLACK_CLIENT_SECRET=""
``````bash
# Run server locally
npm run backend dev# Run front-end locally
npm run frontend dev# Run ngrok tunnel to expose back-end port + host in HTTPS protocol
ngrok http 3000
```Copy the generated ngrok tunnel link and add it to the `REDIRECT_URL` in `App.tsx` and to Redirect URLs in Slack App page.
### Adding slack app
#### Front-end
1. Add via front-end app via `http://localhost:5173/`
2. Click "Add to Slack" button
3. Follow steps#### Back-end
1. Go to `/slack/install`
2. Follow steps