Skip to content

prothegee/server-backend-go

Repository files navigation

server backend go

a server backend using go, postgresql, & redis using domain-driven & test-driven development

prequiste:

  • go: 1.25.0 or higher


important

before anything (build, run, test):

  1. check on the this root project for config.json:

    • if doesn't exists, copy paste from config.json.template to config.json and modify it as you need
  2. check:

  3. scripts:


to check kafka result from websocket:

  1. run your kafka instance
  2. check producer_ctl and adjust your host ipaddrs:port
  3. run the producer_ctl on seperate terminal session
  4. run the backend_api on seperate terminal session
  5. use websocket wscat and open /ws/stock/trade, i.e.:
    • wscat -c http://hostname:portnumber/ws/stock/trade
  6. consumer has no interaction, it always consume the data as long as it connect to the server


preview

quick preview

go kafka websocket go kafka websocket



end of readme

About

Domain-Driven Backend Service with Real-Time Kafka/WebSocket Integration

Resources

License

Stars

Watchers

Forks

Contributors