Git Product home page Git Product logo

goweb's Introduction

这是一个由Go语言写的,简单的CMS(内容管理系统),已经更新到 Go 1.13 版本。

星星增长趋势

Stargazers over time

Asy 1.8 Released 2019年11月19日

  • 解决图片上传问题

技术栈

  • 改用 iris 框架
  • cookie 认证,双重加密
  • 文件目录结构调整
  • 引入 webpack + vue-router + axios
  • 添加角色权限管理
  • 前端路由,后端路径路由与分组路由
  • 注入缓存模块
  • 中间件实现授权访问
  • 使用 Go Module 方式开发

功能点

  • 包括内容列表显示,详情显示,并支持SEO
  • 前端图片懒加载
  • 登录,注册
  • 后台内容管理,用户管理,角色权限管理
  • 图片上传
  • 单页面后台管理

安装说明

  1. 安装mysql
  2. 使用iissy.com.sql初始化数据库以及数据
  3. 修改数据库连接(src/iissy.com/utils/config.go)

使用代码

由于大陆网络无法下载google的包,使用七牛公司的代理,下载包前执行命令

  1. go env -w GOPROXY=https://goproxy.cn,direct

组件下载

  1. go get github.com/go-sql-driver/mysql
  2. go get github.com/kataras/iris
  3. go get github.com/gorilla/securecookie
  4. 运行命令启动# go run main.go

使用说明

  • 请确保80端口没有被别的服务(比如iis)占用,然后在浏览器中输入:http://localhost
  • 管理员账号:jimmy 密码:123456
  • 普通账号:pinbor 密码:123456

首页

markdown

文章

markdown

发布

markdown

列表

markdown

角色

markdown

权限

markdown

权限配置

markdown

相关网站

goweb's People

Contributors

iissy avatar

Watchers

James Cloos 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.