Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

NetEase-Media/ngo-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngo-demo

项目状态

目前项目已经被归档,目前我们重构了ngo项目,让它更加的方便易用,为此我们创建了更好的文档,目前已经迁移至:https://github.com/NetEase-Media/easy-ngo-examples,欢迎大家继续使用。

简介

此项目中包含了ngo框架的一些常规操作,目录排版方式也是我们推荐的格式,请大家斟酌使用。

工程目录说明

   ngo-demo
    ├─cmd
    │  ├─router
    │  │  └─router.go           --路由目录
    │  └─main.go                --main
    ├─configs
    │  └─app-{env}.yaml         --配置文件 env=local|dev|test|pre|pro 等
    ├─logs                      --日志目录,忽略
    ├─pkg                       --业务目录
    │  ├─controller
    │  └─service
    ├─.gitignore
    ├─go.mod
    └─go.sum

服务启动

go run ./cmd/main.go -c ./configs/app-local.yaml

建议环境

自己可以在本地搭建mysql, redis, kafka。 必须自己修改配置文件,连接其他主机的环境,否则项目无法启动。

About

ngo-demo示例

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages