All Projects → wangsongyan → Wblog

wangsongyan / Wblog

Licence: mit
基于gin+gorm开发的个人博客项目

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Wblog

Go-Gin-Api
基于golang开源框架 gin封装的api框架
Stars: ✭ 42 (-94.5%)
Mutual labels:  gin, gorm
Mdblog
用来显示 markdown 文档的,基于 gin 框架的, go 语言开发的博客
Stars: ✭ 264 (-65.4%)
Mutual labels:  blog, gin
goft-gin
基于gin的开发脚手架
Stars: ✭ 108 (-85.85%)
Mutual labels:  gin, gorm
gt-crud
gin+gorm+mysql+api[两步自动crud]
Stars: ✭ 15 (-98.03%)
Mutual labels:  gin, gorm
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
iris-admin
Web admin for iris-go framwork
Stars: ✭ 602 (-21.1%)
Mutual labels:  gin, gorm
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-bjut
A bbs system.
Stars: ✭ 60 (-92.14%)
Mutual labels:  gin, gorm
iam
企业级的 Go 语言实战项目:认证和授权系统
Stars: ✭ 1,900 (+149.02%)
Mutual labels:  gin, gorm
lyanna
go的gin框架实现一个博客系统
Stars: ✭ 39 (-94.89%)
Mutual labels:  gin, gorm
laya-template
服务基本框架,template
Stars: ✭ 13 (-98.3%)
Mutual labels:  gin, gorm
kuu
Modular Go Web Framework based on GORM and Gin.
Stars: ✭ 15 (-98.03%)
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
Go Gin Example
An example of gin
Stars: ✭ 4,992 (+554.26%)
Mutual labels:  gorm, gin

wblog Build Status

示例地址

初衷

作为一名web开发程序员居然没有自己的博客,都不好意思对外宣称自己的开发web的。 以前也有写博客的习惯,但是都是用的现有的博客网站。

技术选型

  1. web:gin
  2. orm:gorm
  3. database:sqlite3
  4. 全文检索:wukong
  5. 文件存储:七牛云存储smms图床
  6. 配置文件 go-yaml

项目结构

-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

使用方法

使用说明

  1. 修改conf.yaml,设置signup_enabled: true
  2. 访问http://xxx.xxx/signup 注册管理员账号
  3. 修改conf.yaml,设置signup_enabled: false

注意事项

  1. 如果需求上传图片功能请自行申请七牛云存储空间,并修改配置文件填写
    • qiniu_accesskey
    • qiniu_secretkey
    • qiniu_fileserver 七牛访问地址
    • qiniu_bucket 空间名称
  2. 如果需要github登录评论功能请自行注册github oauthapp,并修改配置文件填写
    • github_clientid
    • github_clientsecret
    • github_redirecturl
  3. 如果需要使用邮件订阅功能,请自行填写
    • smtp_username
    • smtp_password
    • smtp_host,例如:smtp.163.com:25
  4. Goland运行时,修改main.go getCurrentDirectory方法返回""

效果图

file

file

file

捐赠

如果项目对您有帮助,打赏个鸡腿吃呗!

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].