Skip to content

jesusangelm/api_galeria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Galeria

Simple Go API for gallery on ArtesaniaSory.Com.

Features

  • Custom middlewares for basic security, request logging and recovery from Panic!.
  • Http router (httprouter).
  • PostgreSQL Database (pgx).
  • Flags usage for custom setup
  • Middleware manager (alice).
  • Database Migrations (migrate)
  • Graceful Shutdown
  • JSON logs
  • Query Timeout Context on each DB Request
  • DB Connection pool configuration
  • CDN (GCore CDN)
  • S3 storage (BackBlaze B2)

Deploy

I focused on usage with Podman, so you need install it.

  1. First run the command below for build the image, create the DB volume and create the network for the pods.
make galeria/build
  1. run the command below for create the pods and run the containers inside that pods.
make galeria/deploy

Migrations

Run:

make db/migrations/up

NOTE: for now, you will need to run a SQL query for create the first Admin user for the panel.

About

API Golang para la Galeria ArtesaniaSory

Resources

Stars

Watchers

Forks

Releases

No releases published