DEV Community

vangogh
vangogh

Posted on • Edited on

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




Top comments (1)

Collapse
 
nadimfjtechlab profile image
Nadim Attari • Edited
$ go install github.com/gly-hub/go-dandelion/go-dandelion-cli@latest 

go: downloading github.com/gly-hub/go-dandelion/go-dandelion-cli v0.0.0-20231116080531-7b3f36278354
go: downloading github.com/gly-hub/go-dandelion v1.3.0
go: github.com/gly-hub/go-dandelion/go-dandelion-cli@latest: github.com/gly-hub/go-dandelion/go-dandelion-cli@v0.0.0-20231116080531-7b3f36278354: parsing go.mod:

    module declares its path as: github.com/team-dandelion/go-dandelion/go-dandelion-cli
            but was required as: github.com/gly-hub/go-dandelion/go-dandelion-cli
Enter fullscreen mode Exit fullscreen mode