- the project depends on
docker
anddocker compose
. - tested on
go version go1.21.0 darwin/amd64
andDocker Compose version v2.0.0-rc.3
docker build -f docker/Dockerfile -t heidi_task:v1 .
docker compose -f docker/deploy/dev.yml up
-
by doing this, it will start the services below
- 1 zookeeper
- 1 kafka, listening on 9092
- 1 mysql, listening on 3036
- 2 consultations
- 1 profile, listening on 10001
-
to simulate the create and update event, the
profile
provide the restful apis belowPUT
localhost:10001/profile/add
create one patient profilePOST
localhost:10001/profile/update/one update one patient profilePOST
localhost:10001/profile/update/multiple update multiple patient profilesGET
localhost:10001/profile/query?id=1 query one patient profile by patient id
docker compose -f docker/deploy/dev.yml stop && docker compose -f docker/deploy/dev.yml rm -y