Go get this repo to your local machine and into your $GOPATH/src/github.com/adrianbrad folder using
go get https://github.com/adrianbrad/chat-v2
Usage
Prerequisites
A PostgreSQL database and valid credentials to connect passed to a database config file in the /configs folder.
Set the BASEDIR variable in the Makefile to the project root and the DATABASE_CONFIG_FILE variable to the config file containing your valid db credentials.
Run
Directly
go run ./cmd/chat-database -b={project-path} -d={database-config-file} -a={application-config-file}
When making calls to backend endpoints that require Backend Authentication, you have to add an Authorization header containg a HMAC-SHA256 hash, created from the current time in UNIX Epoch format and UTC timezone and the secret key. The date in UNIX Epoch format and UTC timezone should be added to the Date header.