# mercury **Repository Path**: aefjb_admin/mercury ## Basic Information - **Project Name**: mercury - **Description**: 问答系统 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-05-04 - **Last Updated**: 2022-02-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mercury #### 介绍 问答系统 #### 软件架构 软件架构说明 ![image-20200504182606316](C:\Users\longwei\AppData\Roaming\Typora\typora-user-images\image-20200504182606316.png) #### 安装教程 1、clone项目 `https://gitee.com/aefjb/mercury.git` 2、配置数据库 cd table 导入sql脚本 3、修改配置 修改main.go 30 `dns:=root:root@tcp(localhost:3306)/mercury?parseTime=true` 4、运行 run main.go http://localhost:9090 ## swaggo文档: http://localhost:9090/swagger/index.html ## 技术选型: - [Gin](https://gin-gonic.com/) -- The fastest full-featured web framework for Go. - [Kafka]() -- Apache Kafka® is *a distributed streaming platform* - [redis]() -- Redis is an open source (BSD licensed), in-memory data structure store - [swag]() -- wag converts Go annotations to Swagger Documentation 2.0. ## 项目依赖: ```go go get -u github.com/swaggo/swag/cmd/swag go get -u github.com/garyburd/redigo go get -u github.com/DeanThompson/ginpprof go get -u github.com/Shopify/sarama go get -u github.com/garyburd/redigo go get -u github.com/gin-gonic/gin go get -u github.com/go-sql-driver/mysql go get -u github.com/jmoiron/sqlx go get -u github.com/lestrrat-go/file-rotatelogs go get -u github.com/lestrrat-go/strftime go get -u github.com/satori/go.uuid go get -u github.com/sony/sonyflake go get -u go.uber.org/zap go get -u github.com/swaggo/gin-swagger go get -u github.com/swaggo/gin-swagger/swaggerFiles ``` 模块: | 账号模块 | 注册功能 | 登录功能 | 个人信息维护 | | --------- | -------- | -------- | ------------ | | 问答模块 | 问题发布 | 问题列表 | | | 评论模块 | 评论列表 | 评论发布 | | | 通知模块 | | | | | 搜索模块 | | | | | 收藏模块 | 收藏列表 | 添加收藏 | 删除收藏 | | 点赞模块 | 点赞接口 | | | | 关注模块 | | | | | 短url模块 | | | | ## 前端工程 https://gitee.com/aefjb/mercury-ui #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)