Categorygithub.com/vsychov/go-rating-stars
repositorypackage
0.1.7
Repository: https://github.com/vsychov/go-rating-stars.git
Documentation: pkg.go.dev

# Packages

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

# README

Build Status codecov Go Reference Go Report Card Docker Repository on Quay

#Load env execute bash command

set -o allexport; source .env; set +o allexport

#Health check

curl -iL -XGET -H "X-Health-Check: 1" http://localhost:8080

#Storages GoVote can use Postgress or Redis for store data.

#Generate mocks

mockery --output tests/mocks --recursive --name=StorageInterface

#Env variables PGSQL_ADDR=pgsql PGSQL_USER=gorm PGSQL_PASSWORD=gorm PGSQL_DBNAME=gorm PGSQL_PORT=9920 PGSQL_SSLMODE=disable PGSQL_TIMEZONE=Europe/London

REDIS_ADDR= REDIS_DB= REDIS_PASSWORD=

STORAGE_TYPE=pgsql or redis (default - pgsql), redis not fully implemented yet

CLIENT_IP_HEADER="X-Real-Ip" #gin TrustedPlatform