# macOS
brew install just
# Linux
# Install from https://github.com/casey/just/releases
# Add completion for your shell. E.g. for bash:
source <(just --completions bash)
# Show all available commands
just # shortcut for just --list
Set up a local development environment with:
just devenv
This will create a virtual environment, install requurements and create a
.env
file by copying dotenv-sample
; update it as necessary with valid dev
values for environment variables.
Create a new slack workspace to use for testing.
Follow the steps to create a slack app with the required scopes and install it into your test workspace.
Edit .env
with the slack app tokens etc for the test slack app.
This builds the dev image by default:
just docker/build
just docker/check`
just docker/test
Run all 3 services (bot, dispatcher and webserver) in separate docker containers.
just docker/run-all
Restart all running services.
just docker/restart
Stop running service container:
just docker/stop-all
Stop running services and remove containers:
just docker/rm-all
Run linter and formatter:
just check
Fix issues:
just fix
Run the tests with:
just test <args>
just run <service>
To run the slack bot and test jobs, run both the bot and dispatcher:
just run bot
just run dispatcher