Database Setup

docker run -d \
-e POSTGRES_DB=bookstore \
-e POSTGRES_USER=irfan \
-e POSTGRES_PASSWORD=123456 \
-p 5432:5432 postgres
docker run -d \
-e POSTGRES_DB=bookstore_test \
-e POSTGRES_USER=irfan \
-e POSTGRES_PASSWORD=123456 \
-p 5433:5432 postgres

Run Tests

cd src
APP_ENV=test go test ./... -v -cover

Start the development server

cd src
go mod tidy
APP_ENV=development go run main.go

Use the Client to interact with the server.