a server backend using go, postgresql, & redis using domain-driven & test-driven development
prequiste:
- go: 1.25.0 or higher
before anything (build, run, test):
-
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
-
check:
-
scripts:
to check kafka result from websocket:
- run your kafka instance
- check producer_ctl and adjust your host ipaddrs:port
- run the producer_ctl on seperate terminal session
- run the backend_api on seperate terminal session
- use websocket wscat and open
/ws/stock/trade, i.e.:wscat -c http://hostname:portnumber/ws/stock/trade
- consumer has no interaction, it always consume the data as long as it connect to the server

