laravel-vue-cms

by liukaijv

liukaijv /laravel-vue-cms

基于vue的一个完整练手项目,后台基于laravel5.2写的

127 Stars 44 Forks Last release: Not found MIT License 24 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

laravel-vue-cms

这个项目一直没有更新,把前端部分作了些修改放这个项目里了https://github.com/liukaijv/vue-admin-template。react版本https://github.com/liukaijv/react-reflux-demo

学习laravel和vue,用laravel5.2, vue.js 1.0+ and INSPINIA Admin Theme写的

线上演示

demo

账号: demo 或者 [email protected]

密码: demo

本地运行

克隆代码,安装依赖

clone https://github.com/liukaijv/laravel-vue-cms.git someDir

cd someDir

composer install

npm install

数据库设置

mysql:修改.env文件的数据库配置

DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel-vue-cms
DB_USERNAME=root
DB_PASSWORD=

sqlite:修改config/database.php,使用sqlite

'default' => env('DB_CONNECTION', 'sqlite')

// 创建database.sqlite文件 touch database/database.sqlite

运行

// 创建数据库,填充数据
php artisan migrate
php artisan db:seed

// 后台服务 npm run web

// 前台测试 npm run dev

// 代码生成到publick/admin目录 npm run build

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.