[GIN-debug] Listening and serving HTTP on :8080
QueryRow failed: failed to connect to `host=localhost user=postgres database=postgres`: failed SASL auth (FATAL: password authentication failed for user "postgres" (SQLSTATE 28P01))
exit status 1
make: *** [Makefile:22: run-api-golang] Error 1
Created
May 21, 2024 20:16
-
-
Save JudahSan/b60481381db87c9619930f577a11f0b4 to your computer and use it in GitHub Desktop.
Error running golang backend
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATABASE_URL:=postgres://postgres:foobarbaz@localhost:5432/postgres | |
.PHONY: run-postgres | |
run-postgres: | |
@echo Starting postgres container | |
-docker run \ | |
-e POSTGRES_PASSWORD=foobarbaz \ | |
-v pgdata:/var/lib/postgresql/data \ | |
-p 5432:5432 \ | |
postgres:15.1-alpine | |
.PHONY: run-api-node | |
run-api-node: | |
@echo Starting node api | |
cd api-node && \ | |
DATABASE_URL=${DATABASE_URL} \ | |
npm run dev | |
.PHONY: run-api-golang | |
run-api-golang: | |
@echo Starting golang api | |
cd api-golang && \ | |
DATABASE_URL=${DATABASE_URL} \ | |
go run main.go | |
.PHONY: run-client-react | |
run-client-react: | |
@echo Starting react client | |
cd client-react && \ | |
npm run dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment