yeukfei02 / random-joke-slack-serverless

random-joke-slack-serverless

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


random-joke-slack-serverless

A random joke slack app build in serverless

documentation: https://documenter.getpostman.com/view/3827865/TVRoYmZG

api url: https://wovw7z3xpj.execute-api.ap-southeast-1.amazonaws.com/prod/api/joke

  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

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

About

random-joke-slack-serverless

License:MIT License


Languages

Language:TypeScript 97.8%Language:JavaScript 2.0%Language:Shell 0.1%