The home of the YoBurger SlackBot, give and receive 🍔 ‘s to promote mutual support in slack
- Install Xcode
- Clone the repo
git clone https://github.com/CocoaHeads-COS/yoburger.git - Rename
<projectdir>/server/Sources/YoBurgerMain/config.swift.templateto<projectdir>/server/Sources/YoBurgerMain/config.swift - Add your Slackbot api to
server/Sources/YoBurgerMain/config.swift - Open terminal and goto the
serversubfolder.cd <projectdir>/server - Build the app
swift build - Optional: Create an Xcode Project to edit with Xcode
swift package generate-xcodeproj - Run the app
.build/debug/YoBurgerMain
- Goto: https://my.slack.com/services/new/bot
- Enter
yoburger - Click
Add Bot Integration - Copy the API token to
<projectdir>/server/Sources/YoBurgerMain/config.swift - Go back to your channel and invite the bot.
/invite yoburger
-
Change Directdory to the location of the server
cd <projectdir>/server -
Issue docker-compose command to test
docker-compose -f docker-test.yml up -
Or Issue docker-compose command to run unit tests
docker-compose -f docker-unit-test.yml
