SE Hub
Backend Development (Go)

Getting Started

Prerequisites and steps to run the Go backend locally.

Back End Development (Go)

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 build and docker compose -f docker/local/docker-compose-confluent.yml up -d You can access the confluent page at http://localhost:9021 after the container successfuly run.
  • Make sure your database service is running (if your database running on your local machine).
  • Set environments values on .env file.
  • Enter go run main.go command on terminal to run the app

Notes: You need to re-run go run main.go everytime your code updated.

On this page