https://github.com/jswesterfield/platform-beta-test-app
platform-beta-test-app Slack Platform Beta
https://github.com/jswesterfield/platform-beta-test-app
deno denoland javascript slack-cli typescript
Last synced: 11 months ago
JSON representation
platform-beta-test-app Slack Platform Beta
- Host: GitHub
- URL: https://github.com/jswesterfield/platform-beta-test-app
- Owner: JSWesterfield
- License: mit
- Created: 2022-01-06T16:11:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-21T18:48:03.000Z (almost 4 years ago)
- Last Synced: 2025-01-07T13:12:06.395Z (about 1 year ago)
- Topics: deno, denoland, javascript, slack-cli, typescript
- Language: TypeScript
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Next-gen Slack platform project template - Reverse String
This repo contains a sample project and embedded lightweight SDK of a Typescript based project for the new Deno runtime.
The main file that brings it all together is the `project.ts` file. So far `functions`, `workflows`, `triggers` and `tables` are supported and those should each be created in a file per, under each corresponding directory. `functions/reverse.ts` has a simple sample. After you create a new function or workflow make sure you add it to the `Project` object in `project.ts`.
## Setup
Create a new project using this as repo as a template.
```bash
slack create -t slackapi/deno-reverse-string
```
## Running it locally
```bash
slack run
```
## Deploying to Slack's Hosting
```bash
slack deploy
```
## Testing
You can write tests for your function, see `functions/reverse_test.ts` for a sample. Test base filenames should be suffixed with `_test`. To run tests just run:
```bash
slack deno test
```