Backend service which allows to website readers send messages to the website owner.
- Go 1.20.6
- Docker Server and Client v20.10.24
- DbdiagramIO: online database driagram tool, load the file docs/db/pwebsite-db.dbdiagram.io.dbml on (https://dbdiagram.io/d) in order to generate the entity relationship diagram.
- Golang-Migrate: Handles db migrations, see the target migrateup and migratedown on the Makefile for more reference.
Next environment variables must be defined to run the service:
- DB_DRIVER
- DB_USER
- DB_PASS
- DB_HOST
- DB_PORT
- DB_NAME
- DB_SSLMODE
Sample:
export DB_DRIVER=postgres
export DB_USER=postgres
export DB_PASS=password
export DB_HOST=localhost
export DB_PORT=5432
export DB_NAME=db
export DB_SSLMODE=disable