https://github.com/slackapi/deno-simple
https://github.com/slackapi/deno-simple
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/slackapi/deno-simple
- Owner: slackapi
- License: mit
- Created: 2021-11-17T22:46:47.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T22:04:00.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T15:41:49.564Z (12 months ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 2
- Watchers: 12
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Next-gen Slack platform project template - Simple Demo using Reverse String
This repo contains a sample project and embedded lightweight SDK of a Typescript based project for the new Deno runtime.
This is our single file solution for creating small, simple projects directly in the `project.ts` file to keep everything visible at a glance. Any new `functions`, `workflows` or `triggers` changes to the variable names must be represented in the `Project` object.
## Setup
Create a new project using this as repo as a template.
```bash
slack create -t slackapi/deno-simple
```
## 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
```