Learning Rest-API using gorialla mux and postgreSQL from Semaphore CI gorilla mux tutorial
-
Setup environment variables
export APP_DB_USERNAME=postgres export APP_DB_PASSWORD=bhaskar export APP_DB_NAME=postgres
-
Run postgres docker
docker run --rm --name "psql" -e POSTGRES_PASSWORD=bhaskar -it -p 5432:5432 postgres
-
Run tests
go test -v