Step #1 Install Go $ sudo apt install golang $ go version Step #2 install packages given below $ go mod download Step #3 setup postgres Step #4 setup the environmental variables in .env file cp .env.sample .env Step #5 run these and you are good too go :) $ source .env $ go run main.go