A backend server code repository of Piggy's Kitchen
- Lightweight high-performance HTTP routing
- Built-in request and response handling
- Flexible configuration management
- Support for MySQL database and MinIO object storage service
.
├── LICENSE
├── README.md
├── build
├── cmd
│ └── pigkit
├── configs
├── internal
│ ├── controllers
│ ├── models
│ ├── pigkit
│ ├── routes
│ └── services
├── pkg
├── tests
└── tmp.out
- Go 1.22+
- MySQL
- MinIO
- Clone the repository
git clone https://github.com/wty92911/GoPigKit
cd GoPigKit
- Install dependencies
go mod tidy
- Run database migration
go run database/migrations/001_create_users_table.sql
- Start the service
go run cmd/pigkit/main.go
swag init -g cmd/pigkit/main.go --parseDependency --parseInternal