Skip to content
/ ntm Public

An example CQRS\es implement in Go includes Kafka, Docker, Repository

Notifications You must be signed in to change notification settings

harunnryd/ntm

Repository files navigation

NTM (CQRS/es implementation in Go)

Command query responsibility segregation (CQRS) applies the CQS principle by using separate Query and Command objects to retrieve and modify data, respectively.[2][3] https://en.wikipedia.org/wiki/Command%E2%80%93query_separation

How it works!

Hopefully you guys have installed Docker :)

docker-machine ls
docker-machine ip # Showing the IP eg: 192.168.99.100
vim docker-compose.yml # Open file
  kafka:
    image: wurstmeister/kafka:0.10.2.1
    depends_on:
      - zookeeper
    environment:
      KAFKA_CREATE_TOPICS: "news-topic:1:3,statuses-topic:1:3,tags-topic:1:1:compact"
      KAFKA_ADVERTISED_HOST_NAME: 192.168.99.100 # The value must be change to match docker-machine ip
docker-compose run ntm ginkgo command commandApi # To run unit testing
docker-compose up --build # To run application

Documentation

You can change the host to match docker-machine ip :)


Postman Documentation API Click here . . .

Postman

Terminal

ERD

ERD

License

Gateid is open-sourced software licensed under the MIT license

About

An example CQRS\es implement in Go includes Kafka, Docker, Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published