foxford / event

Event service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Event service

License:MIT License


Languages

Language:Rust 94.2%Language:PLpgSQL 3.1%Language:Ruby 1.5%Language:Shell 0.7%Language:Smarty 0.4%Language:Dockerfile 0.2%