Ginblog
Web blog developed based on Go language (Gin+Gorm+MySQL)
Install / Use
/learn @mazezen/GinblogREADME
gin-blog
<a href="https://github.com/mazezen/gin-blog/releases"> <img src="https://img.shields.io/github/release/gin-blog/releases.svg" alt="GitHub release"> </a> <a href="https://github.com/mazezen/gin-blog/blob/master/LICENSE"> <img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="license"> </a>go+gin+gorm+mysql+vue 博客简版
功能
| 登陆 | ✅ | | ------------ | ---- | | 创建管理员 | ✅ | | 账号列表 | ✅ | | 删除账号 | ✅ | | 账号详情 | ✅ | | 修改账号信息 | ✅ | | 禁用 | ✅ | | 启用 | ✅ | | 创建标签 | ✅ | | 标签列表 | ✅ | | 修改标签名字 | ✅ | | 删除标签 | ✅ | | 创建分类 | ✅ | | 分类列表 | ✅ | | 修改分类名字 | ✅ | | 删除分类 | ✅ | | 写文章 | ✅ | | 文章列表 | ✅ | | 文章修改 | ✅ | | 删除文章 | ✅ | | 评论 | ✅ | | 评论列表 | ✅ | | 删除评论 | ✅ | | 添加友联 | ✅ | | 修改友联 | ✅ | | 删除友联 | ✅ |
目录结构
目录结构
constants # 定义常量目录
state.go
db # 数据库连接初始化
core.go
handler # 控制器
......
middleware # 中间件
......
models # 模型
......
routers # 路由
router.go
service # 服务层,业务逻辑处理,与models交互操作数据库
......
types # 状态码,状态信息
code.go
util # 工具包
encrypt.go
result.go
.gitignore
gin-blog
go.mod
main.go
README.md
后端
git clone git@github.com:mazezen/gin-blog.git
➜ cd gin-blog
➜ gowatch gin-blog
前端
npm install
npm run serve
访问: localhost:8081
admin / 123456
效果

Related Skills
feishu-drive
350.8k|
things-mac
350.8kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
350.8kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
postkit
PostgreSQL-native identity, configuration, metering, and job queues. SQL functions that work with any language or driver
