Skip to content

waiphyo285/go-ginapi-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • Modular Routers: Organized under /api, cleanly separated.
  • GORM: Includes models for Book and AuditLog.
  • CRUD APIs: Supports Create, Read, Update, and Delete for Book
  • Audit Log (Event): Automatically logs events after inserts using event listeners.
  • Middlewares: Easy to integrate logging, authentication, or performance profiling.

Quick Start

Go 1.21.1 or later (If not already installed) in your machine.

1. Clone the Repo

git clone <repo-url>
cd go-ginapi-starter

2. Install pkg and Run app

go mod tidy
go run main.go

3. Testing API

go test ./tests/...

About

Repository includes modular routers, jwt, GORM, and audit logging.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages