Backend Development (Go)
Getting Started
Prerequisites and steps to run the Go backend locally.

Prequisites
- Install Go v1.21.
- Install docker engine (for kafka service if your kafka running on local machine).
- PostgreSQL (if your database running on your local machine).
Steps
- Run Confluent Kafka service container by docker command on terminal
docker compose -f docker/local/docker-compose-confluent.yml buildanddocker compose -f docker/local/docker-compose-confluent.yml up -dYou can access the confluent page athttp://localhost:9021after the container successfuly run. - Make sure your database service is running (if your database running on your local machine).
- Set environments values on
.envfile. - Enter
go run main.gocommand on terminal to run the app
Notes: You need to re-run go run main.go everytime your code updated.