1 Star 0 Fork 0

sjdblank / laravel-iview-vue-test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

laravel-vue-iview

更新说明

2020-06-19:框架升级到 Laravel7,由于 iview 已经停止维护,使用 view-design 代替。

简介

本项目由后台框架 laravel 7、前端框架 vue 以及 ui 框架 view-design 搭建而成。

关于此项目 laravel 5 版本的搭建的思路可以阅读这篇文章

在线预览此项目,线上地址的用户名和密码都是 admin@admin.com.

项目主要内容:

  • vuex 的使用
  • router 配置和动态生成
  • axios 封装和请求
  • webpack.mix.js 的配置

安装

安装扩展

# 克隆项目
git clone https://github.com/Donng/laravel-vue-iview.git

# 安装composer依赖
cd laravel-vue-iview && composer install

# 设置国内淘宝镜像(未设置的)
npm install -g cnpm --registry=https://registry.npm.taobao.org

# 安装npm扩展包
cnpm install

配置

# 复制配置文件
cp .env.example .env

# 生成加密key
php artisan key:generate

# 生成jwt加密key
php artisan jwt:secret

# 配置env中的数据库链接
配置数据库名称、用户名和密码

# 数据库迁移
php artisan migrate
php artisan db:seed

编译

# 开发环境编译
npm run dev (或 npm run watch 监控文件修改)
# 生产环境编译,压缩JS文件
npm run prod

访问项目

php artisan serve

访问 http://127.0.0.1:8000

用户名和密码都是 admin@admin.com

文件结构

├── api  后端接口目录
├── components  公共组件库
├── images  图片资源
├── lang  多语言支持
├── libs  方法扩展库      
├── router  路由配置目录
├── store  vuex 配置
├── styles  样式库
├── utils  请求和公共方法封装
└── views  前端视图界面
MIT License Copyright (c) 2020 Donne Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sjdblank/laravel-iview-vue-test.git
git@gitee.com:sjdblank/laravel-iview-vue-test.git
sjdblank
laravel-iview-vue-test
laravel-iview-vue-test
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891