Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.34 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.34 KB

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 git@github.com: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: