https://github.com/yeukfei02/random-joke-slack-serverless
random-joke-slack-serverless
https://github.com/yeukfei02/random-joke-slack-serverless
aws-apigateway aws-lambda aws-xray nodejs serverless
Last synced: 2 months ago
JSON representation
random-joke-slack-serverless
- Host: GitHub
- URL: https://github.com/yeukfei02/random-joke-slack-serverless
- Owner: yeukfei02
- License: mit
- Created: 2020-10-14T13:30:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T11:43:00.000Z (over 2 years ago)
- Last Synced: 2025-08-03T13:30:13.102Z (11 months ago)
- Topics: aws-apigateway, aws-lambda, aws-xray, nodejs, serverless
- Language: TypeScript
- Homepage:
- Size: 3.49 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

random-joke-slack-serverless
A random joke slack app build in serverless
documentation:
api url:
1. create slack app
2. add slash command, add your api endpoint to slash command
3. add `chat:write` and `command` into `scope`
4. add slack app to your channel
5. get the `oauth token`
## Requirement
- install yarn
- install node (v14+)
- install serverless
## Testing and run
```zsh
// test api in local
$ yarn run dev
// deploy to serverless
$ yarn run deploy
// open serverless dashboard
$ yarn run dashboard
// lint code
$ yarn run lint
// format code
$ yarn run format
// run test case
$ yarn run test
// remove serverless services in aws (api gateway, lambda, s3, cloudformation)
$ yarn run remove
```