Giter VIP home page Giter VIP logo

cue's Introduction

CoreStarter

DoNewsCode/core is a service container that elegantly bootstrap and coordinate twelve-factor apps in Go. This is a starter template using the DoNewsCode/core framework.

目录结构

├── app                     # 主目录
│   ├── commands            # 命令目录: 存放所有的命令定义
│   │   └── version.go      # 显示版本命令 (示例命令)
│   └── module.go           # 模块核心配置, 包括依赖注入的注册等
├── bootstrap               # 启动目录: 项目与 Core 框架核心关联
│   ├── bootstrap.go        # 项目与 Core 的核心关联
│   ├── bootstrap_test.go   # 测试
│   └── root.go             # 项目根命令
├── config                  # 全局配置目录: 全局模块的注册和管理
│   └── app.go              # 配置模块加载与命令加载等
├── docs                    # 文档目录
│   ├── docsify             # Docsify 文档目录: 访问地址 {host:port}/docs/docsify
│   └── swagger             # Swagger 文档目录: 访问地址 {host:port}/docs/swagger
├── .gitignore              # Git 忽略文件
├── config.example.yaml     # 示例配置文件
├── config.yaml             # 配置文件
├── go.mod                  # go module
├── go.sum                  # go module
├── main.go                 # 项目入口
└── readme.md               # Readme

Example

Gin Http Example

Go Kit Example

Help

# Export example config
go run main.go config init -o config.example.yaml

# Config
cp config.example.yaml config.yaml

# Generate
go generate -x ./...

# Build
go build -o skeleton .

# Format
go fmt -x ./...

# Test
go test ./...

cue's People

Contributors

nfangxu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.