Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 903 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 903 Bytes

Personal Website Backend

Backend service which allows to website readers send messages to the website owner.

Development tools

  1. Go 1.20.6
  2. Docker Server and Client v20.10.24
  3. 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.
  4. Golang-Migrate: Handles db migrations, see the target migrateup and migratedown on the Makefile for more reference.

Configurations

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