DocsGetting started
Quickstart
Run the full stack locally and score a fixture pull request.
Planned
Prerequisites
| Tool | Version |
|---|---|
| Docker | with Compose |
| Go | 1.22 or later |
| Python | 3.11 or later |
| Node | 20 or later |
| GitHub CLI | gh, for webhook forwarding |
Run the stack
git clone git@github.com:ru-dr/riffle.git && cd riffle
cp .env.example .env
make bootstrap && make up && make seedmake up brings up Postgres, Redis, a Pub/Sub emulator and all four services.
make seed loads a fixture tenant so the dashboard has something to show.
Everyday commands
make test # all services
make lint
make logs SERVICE=scorer # follow one service
make downSend a pull request without GitHub
Replay a recorded webhook, or forward live events from a test repository:
make replay FIXTURE=fixtures/pr_opened.json
gh webhook forward --repo=<org>/<test-repo> --events=pull_request \
--url=http://localhost:8080/webhookTrain locally
Training runs on CPU and finishes in minutes on the fixture tenant:
make train TENANT=fixture
make evaluate TENANT=fixture
make promote TENANT=fixture VERSION=<version>