Giter VIP home page Giter VIP logo

gin-blog's Introduction

Go语言开发博客。

Go+Gin+Gorm 可查看我的博客: 太阳上的雨天 http://blog.caixiaoxin.cn

功能

+ 登陆--JWT
+ 创建管理员
+ 账号列表
+ 删除账号
+ 删除账号
+ 账号详情
+ 修改账号信息
+ 禁用
+ 启用
+ 创建标签
+ 标签列表
+ 修改标签名字
+ 删除标签
+ 创建分类
+ 分类列表
+ 修改分类名字
+ 删除分类
+ 写文章
+ 文章列表
+ 文章修改
+ 删除文章
+ 评论
+ 评论列表
+ 删除评论
+ 添加友联
+ 修改友联
+ 删除友联

设计目录结构

目录结构
	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 [email protected]:jeffcail/gin-blog.git
cd gin-blog
➜ gowatch gin-blog

前端 vue

cd gin-blog/admin

npm run serve

访问: localhost:8081

admin / 123456

gin-blog's People

Contributors

jeffcail avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.