# go-buildadmin **Repository Path**: ttdms/go-buildadmin ## Basic Information - **Project Name**: go-buildadmin - **Description**: 一个go版本的buildadmin后端 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-27 - **Last Updated**: 2025-04-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Go Gin Project This project is a web application built using the Gin framework in Go. It consists of two main applications: **admin** and **index**. Each application has its own set of routes, handlers, middleware, models, repositories, and services, organized in a modular structure. ## Project Structure ``` go-mgdms ├── cmd │ ├── admin │ │ └── main.go # Entry point for the admin application │ └── index │ └── main.go # Entry point for the index application ├── internal │ ├── admin │ │ ├── handlers # Contains HTTP handlers for admin │ │ ├── middleware # Contains middleware for admin │ │ ├── models # Contains data models for admin │ │ ├── repositories # Contains data access methods for admin │ │ ├── services # Contains business logic for admin │ │ └── routes # Contains route definitions for admin │ ├── index │ │ ├── handlers # Contains HTTP handlers for index │ │ ├── middleware # Contains middleware for index │ │ ├── models # Contains data models for index │ │ ├── repositories # Contains data access methods for index │ │ ├── services # Contains business logic for index │ │ └── routes # Contains route definitions for index │ └── common │ ├── config # Contains configuration loading │ ├── database # Contains database connection logic │ └── utils # Contains utility functions ├── pkg │ └── logger # Contains logging functionality ├── configs │ ├── admin.yaml # Configuration for admin application │ └── index.yaml # Configuration for index application ├── scripts │ └── run.sh # Script to run the applications ├── go.mod # Go module configuration ├── go.sum # Go module dependency checks └── README.md # Project documentation ``` ## Getting Started 1. **Clone the repository:** ``` git clone cd go-mgdms ``` 2. **Install dependencies:** ``` go mod tidy ``` 3. **Run the applications:** - For the admin application: ``` go run cmd/admin/main.go ``` - For the index application: ``` go run cmd/index/main.go ``` ## Configuration Configuration files for each application are located in the `configs` directory. Modify `admin.yaml` and `index.yaml` to set application-specific parameters. ## Logging Logging functionality is provided in the `pkg/logger` package. You can customize the logging behavior as needed. ## Contributing Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes. ## License This project is licensed under the MIT License. See the LICENSE file for details.