Skip to content

alcastic/pwebsite-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published