Git Product home page Git Product logo

myblog's Introduction

myblog

本项目是由Python实现的个人博客网站
后端使用Python3编写,基于Flask框架,并以Jinja2作为模板引擎。使用MySQL数据库。前端部分使用的是bootstrap CSS框架。   项目部署在阿里云,服务器操作系统为Ubuntu 16.04,使用Gunicorn处理动态请求,搭配gevent库实现异步响应。前端反向代理服务器使用Nginx。监测使用Supervisor来守护进程。  

如果喜欢的话,可以点击右上角star支持一下我哈~
开发相关日志可以在CSDN博客中查看。
安装教程点这里

项目结构

|-myblog
     |-config.py 配置文件
     |-manage.py 用于启动程序
     |-app/保存所有的Flask程序
          |-__init__.py初始化Flask文件
          |-models.py数据库模型
          |-templates/模板文件夹
          |-static/静态文件夹
          |-main/ mian蓝图文件夹
               |-views.py 视图函数
               |-forms.py 表单
               |-errors.py HTTP错误
          |-manage/ manage蓝图文件夹
          |-auth/  auth蓝图文件夹

入口  

后端API
/comment/disable/<int:id> 屏蔽评论
/comment/enable/<int:id> 恢复评论
/user/disable/<int:id>   封禁用户
/user/enable/<int:id>   解禁用户
/delete-blog/<int:id>   删除文章
/manage/create-blog 写文章页面
/blog/<int:id>  写评论  

用户浏览页面:
/index 主页
/blog/<id> 文章详情页
/blog/<id>#comments 文章评论列表

后台管理页面:
/manage/change-password 密码修改页面
/manage/blogs 文章管理页面
/manage/users 用户管理页面
/manage/comments 评论管理页面
/manage/edit-blog/<id>  编辑文章页面

验证页面:
/auth/login 登录
/auth/register 注册
/auth/logout  登出

开发日志

2017-9-20
原网站基于python3.5的asyncioaiohttp库开发,实现异步响应。前端使用uikit CSS框架。
自行构建了Web和ORM框架,数据库使用MySQL

2017-10-20
决定使用Flask + bootstrap重构网站前后端。ORM框架选用SQLAlchemy

2017-10-28
历时一周,完成了后端和前端的重构。

2017-11- 1
网站在阿里云部署上线,进行审核备案,网站域名www.jiyuankai.top

2017-11- 4
新增文章分类功能:
1、创建/修改日志时可以添加/删除文章分类标签;
2、主页和文章详情页标题下方显示分类标签;
3、主页右侧添加分类栏,可选择要显示的文章类型。

2017-11- 6
新增收藏功能:
1、增加收藏夹页面,用于浏览和管理已收藏文章;
2、右侧下拉导航增加收藏管理入口,用于进入收藏页面;
3、文章详情页显示收藏/取消收藏按钮;

2017-11- 13
经过两周的审核,域名 www.jiyuankai.top 终于备案成功了~

myblog's People

Contributors

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