Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

ivegotanidea/golang-gorm-postgres

 
 

Repository files navigation

exam files

docker compose setup

database

Database is served via ./backups/data_backup.sql which applied by container init_db at the start of the app.
It's okay when you see init_db failed — in most recent case that means that DB is not empty — migrations are already applied. If it's not ok for you, you need to:

docker volume rm golang-gorm-postgres_postgres

The command clears docker volume, then you can apply db migrations.
And this is how you make a dump:

pg_dump -h localhost -p 6500 -U postgres -f data_backup.sql golang-gorm

watermark

convert -background none -fill "rgba(255,255,255,0.5)" -font Arial -pointsize 48 label:"© Your Company" watermark.png\n

base64 -i watermark.png -o watermark.b64

Packages

No packages published

Languages

  • Go 96.5%
  • Shell 2.4%
  • Other 1.1%