testify-usage-example

command module
v0.0.0-...-023d5f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL