Categorygithub.com/andyklimenko/testify-usage-example
modulepackage
0.0.0-20231123151204-023d5f20cc65
Repository: https://github.com/andyklimenko/testify-usage-example.git
Documentation: pkg.go.dev

# README

testify-usage-example

build

This is just an example of best testing practices I've come up with during my 5 yrs of professional Golang experience. Feel free to report any issue or submit an improvement in PR if you find any

Database

local env

Use dockerized postresql for your convenience

docker run -p 5432:5432 -e POSTGRES_PASSWORD=secretpassword -d postgres

Starting the webserver

At server's startup all db migrations will automatically be applied

export STORAGE_DRIVER=postgres
export STORAGE_DSN='user=postgres password=secretpassword dbname=postgres host=localhost port=5432 sslmode=disable'
export SERVER_ADDRESS=0.0.0.0:8080
export NOTIFY_ADDRESS=https://webhook.site/#!/9699b471-d1b1-4674-a4d9-473a1d305059
make run-server

# Packages

No description provided by the author
No description provided by the author