wangsongyan / Wblog
Licence: mit
基于gin+gorm开发的个人博客项目
Stars: ✭ 763
Projects that are alternatives of or similar to Wblog
Go Gin Api
基于 Gin 进行模块化设计的 API 框架,封装了常用功能,使用简单,致力于进行快速的业务研发。比如,支持 cors 跨域、jwt 签名验证、zap 日志收集、panic 异常捕获、trace 链路追踪、prometheus 监控指标、swagger 文档生成、viper 配置文件解析、gorm 数据库组件、gormgen 代码生成工具、graphql 查询语言、errno 统一定义错误码、gRPC 的使用 等等。
Stars: ✭ 730 (-4.33%)
Mutual labels: gorm, gin
go-12factor-example
Example the 12factor app using golang
Stars: ✭ 20 (-97.38%)
Mutual labels: gin, gorm
golang api
This is a source code of my golang restful api series on youtube.
Stars: ✭ 36 (-95.28%)
Mutual labels: gin, gorm
ego
Go微服务.A simple and component-based microservice kit for go.
Stars: ✭ 765 (+0.26%)
Mutual labels: gin, gorm
Go Admin
基于Gin + Vue + Element UI的前后端分离权限管理系统脚手架(包含了:多租户的支持,基础用户管理功能,jwt鉴权,代码生成器,RBAC资源控制,表单构建,定时任务等)3分钟构建自己的中后台项目;文档:https://doc.go-admin.dev Demo: https://www.go-admin.dev Antd beta版本:https://preview.go-admin.dev
Stars: ✭ 5,439 (+612.84%)
Mutual labels: gin, gorm
Blog Core
Modular blog using Blazor with clean domain-driven design patterns
Stars: ✭ 345 (-54.78%)
Mutual labels: blog, adminlte
Go Admin
A golang framework helps gopher to build a data visualization and admin panel in ten minutes
Stars: ✭ 5,580 (+631.32%)
Mutual labels: gin, adminlte
gin-gorm-api-example
[Article] Minimal code for Golang based API
Stars: ✭ 98 (-87.16%)
Mutual labels: gin, gorm
Go Project Sample
Introduce the best practice experience of Go project with a complete project example.通过一个完整的项目示例介绍Go语言项目的最佳实践经验.
Stars: ✭ 344 (-54.91%)
Mutual labels: gorm, gin
wblog
初衷
作为一名web开发程序员居然没有自己的博客,都不好意思对外宣称自己的开发web的。 以前也有写博客的习惯,但是都是用的现有的博客网站。
技术选型
项目结构
-wblog
|-conf 配置文件目录
|-controllers 控制器目录
|-helpders 公共方法目录
|-models 数据库访问目录
|-static 静态资源目录
|-css css文件目录
|-images 图片目录
|-js js文件目录
|-libs js类库
|-system 系统配置文件加载目录
|-tests 测试目录
|-vendor 项目依赖其他开源项目目录
|-views 模板文件目录
|-main.go 程序执行入口
TODO
- [ ] 系统日志
- [ ] 网站统计
- [x] 文章、页面访问统计
- [x] github登录发表评论
- [x] rss
- [x] 定时备份系统数据
- [x] 邮箱订阅功能
安装部署
本项目使用govendor管理依赖包,govendor安装方法
go get -u github.com/kardianos/govendor
git clone https://github.com/wangsongyan/wblog
cd wblog
govendor sync
go run main.go
使用方法
使用说明
- 修改conf.yaml,设置signup_enabled: true
- 访问http://xxx.xxx/signup 注册管理员账号
- 修改conf.yaml,设置signup_enabled: false
注意事项
- 如果需求上传图片功能请自行申请七牛云存储空间,并修改配置文件填写
- qiniu_accesskey
- qiniu_secretkey
- qiniu_fileserver 七牛访问地址
- qiniu_bucket 空间名称
- 如果需要github登录评论功能请自行注册github oauthapp,并修改配置文件填写
- github_clientid
- github_clientsecret
- github_redirecturl
- 如果需要使用邮件订阅功能,请自行填写
- smtp_username
- smtp_password
- smtp_host,例如:smtp.163.com:25
- Goland运行时,修改main.go getCurrentDirectory方法返回""
效果图
捐赠
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].