# express博客后台 **Repository Path**: GentleLiu/express_blog_background ## Basic Information - **Project Name**: express博客后台 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # express博客后台 #### 介绍 基于nodejs+express+element-ui搭建的个人博客,有后台管理+前台博客双系统 [https://gitee.com/GentleLiu/express_blog_background.git](https://gitee.com/GentleLiu/express_blog_background.git)} #### 软件架构 软件架构说明 后台部分nodejs+express搭建,代码简陋,欢迎指导 前台页面使用vue+element-ui+axios搭建 #### 安装教程 1. npm install 2. node app.js 3. 进入web目录npm install 4. npm run dev #### 使用说明 1. 后台管理系统不开放普通用户登录,只限管理员账号登录 #### 接口文档 接口地址http://localhost:3030 1.注册接口 /register 请求方式:post 参数: username password 2.登录接口 /login 请求方式:post 参数: username password 3.获取用户列表 /getUserList 请求方式:post 参数: power 此为用户权限参数,只有管理员可以访问该接口 4.软删除用户 /deleteUser 请求方式:post 参数: id is_del 0或1,0代表不删除,1代表删除 5.限制用户写博客 /controlUser 请求方式:post 参数: id control 0或1,0代表不限制,1代表限制 6.添加分类 /addCategroy 请求方式:post 参数: cateName 7.删除分类 /deleteCategroy 请求方式:post 参数: id 8.获取分类列表 /deleteCategroy 请求方式:get 参数: 无 9.添加文章 /addArticle 请求方式:post 参数: title author img content cid 10.删除文章 /delArticle 请求方式:post 参数: id 11.还原文章 /returnArticle 请求方式:post 参数: id 12.获取全部文章(最新文章) /getAllArticle 请求方式:post 参数: page 13.获取个人文章(最新文章) /getMyArticle 请求方式:post 参数: author page 14.获取回收站文章(最新文章) /getMyArticle 请求方式:post 参数: author page 15.管理员硬删除文章 /relDelArticle delete 参数: id