Skip to content

wty92911/GoPigKit

Repository files navigation

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 

About

A backend server code repository of Piggy's Kitchen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published