example

command module
v0.0.0-...-ca495eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GO EventStore Example

Example Project based on Gin

One more overengineered ToDo API to demonstrate the GO EventStore Package

Required

  • Go >= 1.13
  • Postgres

Features

  • Swagger UI to try the ToDo API
  • docker-compose.yaml to start the example as Docker Container
  • Makefile to update SwaggerUI, start or build the App

Exampled Features

  • Define and register Aggregates and Events
  • Create and use an Repository to load and save Aggregates
  • Create and prepare an EventStore
  • Create an EventStream
  • Build ReadModel Projections
  • Use persisted ReadModel with an custom ReadModelFinder
  • Execute an ReadModel in the Background
  • Use Gin to perform your actions in form of Queries and Commands

Start the Project

Use docker-compose.yaml to start only the required Postgres Database

docker-compose up -d postgres

Use the Makefile to start the App locally

make start

You could also start the App as Docker Container

docker-compose up -d app

Try it out

Serve the SwaggerUI under

http://localhost:8080/swagger/index.html

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址