The API expects the following environment variables:
- DB_URL - postgres db connection string.
Run tests:
You can use the PSQL docker image made for this purpose here.
Also, something like postgresql://gopher:myscretpassword@localhost:5432/microblog
as de DB connection string.
go test personalblog ENV_PATH=../.env