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

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

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
```