https://kotlinlang.org logo
#http4k
Title
# http4k
o

Oliver Eisenbarth

10/15/2023, 12:45 PM
Are there any examples of how to use com.slack.api.bolt.http4k? Does that SlackAppServer allow to test against Slack in memory? Want to build a slack application for the local maker space, but don't know how to get started with this...
d

dave

10/15/2023, 2:39 PM
Not much TBH - there's only what is in the slack bolt repo afaik: https://github.com/slackapi/java-slack-sdk/blob/main/bolt-http4k/src/test/java/example/app/ExampleHttp4kBoltServer.java But it's not too difficult - it's basically the slack SDK inside of an http4k shell IIRC. So you construct the slack app manually using their SDK API and inject it into the adapter which produces an HttpHandler that you can invoke as normal or launch on a port/put into a lambda etc.
👍 1
o

Oliver Eisenbarth

10/15/2023, 3:07 PM
Thank you. I'll see what I can do and ask when I get stuck. 👋🏻
2 Views