Skip to content

😎✌️A flamego template with some useful thing.

Notifications You must be signed in to change notification settings

wujunyi792/flamego-quick-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flamego-Template

全新的后端快速开发模板

有什么

  • flameGo
  • 定时任务
  • Gorm + 多数据库支持
  • memory cache, redis 多缓存支持
  • 腾讯云短信
  • 阿里云对象存储
  • 邮件服务
  • Viper 配置文件
  • 日志服务
  • 容器化部署方案 dockerfile + docker compose
  • ip 检测
  • jwt鉴权套件
  • 随机数生成工具
  • 彩色控制台输出
  • websocket

How to use

  • Globally replace the package name with your own repository
  • Edit config/vars GlobalConfig. It is recommended to make changes on the existing basis. Try not to change the existing structure, if you change, you need to change part of the code synchronously
  • Exec go run .\main.go config and run, config.yaml will generate under config/
  • Complete the config
  • If you deploy with docker engine, edit docker-copmose.yml, Especially port mappings and service names

新增服务

go run main.go create -n [newAppName]

然后会在internal/app目录下生成newAppName目录,里面包含了handleservicerouter等目录,新增的路由会被自动注册

启动服务

go run main.go server

About

😎✌️A flamego template with some useful thing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published