Giter VIP home page Giter VIP logo

myblog's Introduction

myblog

介绍

本项目是一个个人博客系统,能够实现后台写文章、发动态、发布项目、文章分类管理、评论管理,以及前台文章的分页展示、分类展示、动态的展示以及评价,还有项目的展示,以及留言和个人简历的展示。

软件架构

1.前端采用了vue框架,前台页面继承了vuesax组件库、后台继承了element-ui组件库,对后端发送axios请求获取数据(前台界面参考于别人) 2.后端采用了golang的gin框架,采用gorm框架对mysql进行操作,采用了日志库和日志分割作为gin的中间件来记录日志,利用cors进行跨域访问,采用jwt进行后台登陆的鉴权 3.将项目部署在docker容器中

安装教程

docker下的安装(无需go环境,需要安装docker,并在docker中拉取启动mysql:5.6并创建数据库myblog):

  1. 修改config下的config.ini文件
  2. 进入文件所在的文件夹,执行docker build -f Dockerfile -t myblog .
  3. 执行 docker run -p 3000:3000 -d myblog
  4. 前台网页访问localhost:3000,后台网页访问localhost:3000/admin

直接安装访问(需要配置go环境,并安装mysql:5.6,创建数据库myblog):

  1. 修改config.ini文件
  2. 执行命令go mod download下载go依赖包
  3. go run main.go执行
  4. 前台网页访问localhost:3000,后台网页访问localhost:3000/admin

使用说明

  1. 需要在windows下或者docker下安装mysql
  2. 如果主机名不是localhost,需要修改config/config.ini并修改前端axios的baseURL后重新打包

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

myblog's People

Contributors

zzssdd avatar yogen2 avatar

Stargazers

 avatar heisitation avatar 飞龙Test avatar ArkiWang avatar  avatar  avatar

Watchers

 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.