https://github.com/matejamaric/esdb-playground
Experimenting with Event Sourcing using EventStoreDB
https://github.com/matejamaric/esdb-playground
docker docker-compose event-sourcing eventstoredb go golang mariadb
Last synced: 6 months ago
JSON representation
Experimenting with Event Sourcing using EventStoreDB
- Host: GitHub
- URL: https://github.com/matejamaric/esdb-playground
- Owner: MatejaMaric
- Created: 2023-10-11T09:38:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T17:43:46.000Z (over 1 year ago)
- Last Synced: 2025-02-11T17:14:00.760Z (over 1 year ago)
- Topics: docker, docker-compose, event-sourcing, eventstoredb, go, golang, mariadb
- Language: Go
- Homepage:
- Size: 234 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Requirements
- [Go 1.21 or higher](https://go.dev/dl/)
- [Docker](https://www.docker.com/products/docker-desktop)
## Setup steps
### EventStoreDB & MariaDB
If you are on an x86_64 system you should go to `docker-compose.yaml` and change the EventStoreDBs container image to `buster-slim`.
To start the databases run:
```bash
docker-compose up
```
To access EventStoreDB web interface you can type `localhost:2113` in your web browser.
To access MariaDB, you use the MySQL CLI client (if you have it installed):
```bash
mysql --host=127.0.0.1 --user=playground_user --password=playground_user_password projected_models
```
Or you can access the Docker container to connect, using it's MariaDB CLI client:
```bash
docker exec -it esdb-playground-mariadb-1 /bin/sh
/bin/mariadb --user=playground_user --password=playground_user_password projected_models
```
### The project itself
```bash
go build
./esdb-playground
```