a framework scaffolding tool for golang

vangogh

vangogh

Posted on June 26, 2023

a framework scaffolding tool for golang

Introduction

go-dandelion is a framework scaffolding tool that integrates multiple popular components
and technologies, including rpcx, fasthttp, gorm, redigo, swagger, and opentracing, among
others. Its goal is to provide developers with a solution for quickly building microservice
projects, offering rich functionality and scalability.

go-dandelion-cli Usage

  1. Installation ```

go get github.com/gly-hub/go-dandelion/go-dandelion-cli@latest
go install github.com/gly-hub/go-dandelion/go-dandelion-cli@latest


## 2. Create a Project
Create a local project directory and create the corresponding project based on the prompts.
```shell


# Create an application
go-dandelion-cli app -n go-admin-example
# Enter the application directory
cd go-admin-example
# Build the service
go-dandelion-cli build -n go-admin-example
Enter the type of service to create, enter a number (1 for rpc, 2 for http): 1
RPC service name: example-server
Initialize MySQL (y/n): y
Initialize Redis (y/n): y
Initialize logger (y/n): y
Initialize trace links (y/n): y


Enter fullscreen mode Exit fullscreen mode

3. Run the Project



cd example-server
# Enter the service directory
go build -o example-server
# Run the service
./example-server server


Enter fullscreen mode Exit fullscreen mode

GitHub logo team-dandelion / go-dandelion

Use golang to integrate rpcx, fasthttp's microservices framework, including current limiting, link tracking, service discovery, and more. Scaffolding tools can be used to quickly build projects.(使用golang集成rpcx、fasthttp的微服务框架,包含限流、链路追踪、服务发现等。可使用脚手架工具快速构建项目。)

中文|English

About go-dandelion

The go-dandelion project aims to provide developers with a project framework that integrates various components, making it easy to build projects and improve development efficiency. It eliminates the need to spend time on integrating different components, allowing developers to focus on business development.

Go Go Report Card codecov MIT license Release Go.Dev reference

Security Status

Integration

Features

  • Quickly create RPC services and HTTP services.
  • Initialize MySQL, Redis, logger, and trace links quickly through configuration.
  • Integrated logging, distributed tracing, rate limiting, circuit breaking, service registration, service discovery, and other features.
  • Customizable middleware and plugins.

go-dandelion-cli

go-dandelion-cli

🔥Contributors

⭐ Star the project

if you find it interesting!

Open Source

MIT License




💖 💪 🙅 🚩
vangogh
vangogh

Posted on June 26, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related