arif-x / sqlx-postgresql-boilerplate

This Go boilerplate using SQLX, PostgreSQL & GoFiber Framework with Swaggo Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLX Go-Fiber Boilerplate

Todo List

  • Code Structure
  • Fix CRUD Sample
  • Dynamic List (Get paginate, search, sort by, and sort)
  • One-to-one & one-to-many/many-to-many relational with native Postgre Query
    • (One-to-one) Example is in app/repository/public/post/Index
    • (One-to-many/Many-to-many) Example is in app/repository/public/post/TagPost
  • Auth
  • Role & Permission
  • Implement Swagger

Why no ORM?

  • Slow
  • Memory leaks vurnerable
  • Can be make server hiccup

Commands

  • For Linux/Mac:
    • Just run ./boilerplate to see all available commands
    • Just run ./boilerplate type_command_here to run the command
  • For Windows:
    • Just run boilerplate to see all available commands
    • Just run boilerplate type_command_here to run the command

About

This Go boilerplate using SQLX, PostgreSQL & GoFiber Framework with Swaggo Implementation


Languages

Language:Go 100.0%