Skip to content

dudo-website/event-service

Repository files navigation

Event Service

Federated graphQL sub-graph written schema-first with gqlgen. This service exposes a mutation for event sourcing.

Setup

This service makes heavy use of docker and docker compose. Setting up docker is beyond the scope of this readme.

mkdir ~/projects/dudo-website
cd ~/projects/dudo-website
git clone [email protected]:dudo-website/event-service.git
cd ~/projects/dudo-website/event-service

docker compose up -d

Development

gqlgen provides a schema-first approach to graphQL development. Start with ./graph/schema.graphqls, and modify the schema as necessary.

To generate code:

docker compose run --rm gen

Deployment

This should be done for you via CI/CD, but in case you need to manually push an image

docker build -t docker.pkg.github.com/dudo-website/event-service/event-service:0.1.0
docker push docker.pkg.github.com/dudo-website/event-service/event-service:0.1.0

Reading

Learn about the various tech powering this application:

About

Event Sourcing API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published