Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

foxford/event

Repository files navigation

Event

dependency status

Documentation

Development

Start the broker:

export COMPOSE_PROJECT_NAME=event
export COMPOSE_FILE=docker/docker-compose.yml
docker-compose up

Set up database:

export DATABASE_URL=postgres://postgres@localhost/event.dev
cargo install sqlx-cli --version 0.2.0
cargo sqlx database create
cargo sqlx migrate run

Set up config from the sample:

cp App.toml.sample App.toml

The you can build and run the service locally having stable Rust installed:

cargo run

Deployment

This service has a regular deployment to k8s with skaffold. For example to deploy the current revision to testing run:

NAMESPACE=testing ./deploy.init.sh
IMAGE_TAG=$(git rev-parse --short HEAD) skaffold run -n testing

License

The source code is provided under the terms of the MIT license.