Skip to content

Latest commit

 

History

History
63 lines (54 loc) · 1.13 KB

README.md

File metadata and controls

63 lines (54 loc) · 1.13 KB

GoPigKit

A backend server code repository of Piggy's Kitchen

Features

  • Lightweight high-performance HTTP routing
  • Built-in request and response handling
  • Flexible configuration management
  • Support for MySQL database and MinIO object storage service

Directory structure

.
├── LICENSE
├── README.md
├── build
├── cmd
│   └── pigkit
├── configs
├── internal
│   ├── controllers
│   ├── models
│   ├── pigkit
│   ├── routes
│   └── services
├── pkg
├── tests
└── tmp.out

Installation and configuration

Prerequisites

  • Go 1.22+
  • MySQL
  • MinIO

Installation steps

  1. Clone the repository
git clone https://github.com/wty92911/GoPigKit
cd GoPigKit
  1. Install dependencies
go mod tidy

Quick start

  1. Run database migration
go run database/migrations/001_create_users_table.sql
  1. Start the service
go run cmd/pigkit/main.go

Swag Doc

swag init -g cmd/pigkit/main.go --parseDependency --parseInternal