前后端分离后台管理系统源码分享

2017-11-09 16:06:33 +08:00
 hjaycee

介绍

前后端分离后台小网站

  • 前端使用 vue+vue-router+element-ui+npm+webpack
  • 后台接口使用 php

演示地址

http://www.signxx.com

安装

git clone https://github.com/HJaycee/SimpleAdmin.git
cd SimpleAdmin
npm install

启动

npm run dev

部署到服务器

cd SimpleAdmin
npm run build
// 编译完成后,将 dist 目录下的文件上传到服务器目录下
// 因为使用 vue-router 的 hitory 模式,服务器需要做相关配置自动重定向到 index.html
// apache 下创建隐藏文件.htaccess,填以下内容
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>

前端部分

已实现功能

  • 登录 /注册
  • 留言
  • 留言列表
  • 身份过期处理

相关配置

/config/index.js // 反向代理
/src/router/index.js // 路由
/url/api.js // 请求接口

后台部分

  • 环境要求 php5
  • 使用 ThinkPHP3.2.3
  • 提供前端需要的相关接口:登录接口返回 token,其它接口效验 token 是否过期

数据库

user // 用户表
feedback // 留言表
4640 次点击
所在节点    Vue.js
2 条回复
alber1986
2017-11-29 10:29:36 +08:00
这个还不错
hjaycee
2017-11-30 18:51:06 +08:00
@alber1986 谢谢哈

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/404989

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX