一个简单的前后端分离单页blog应用,后端接口使用laravel5.4,前端使用webpack vuejs实现单页应用,后台使用iview2UI组件库
技术栈 laravel5.4 + webpack2 + Vuejs2 + vue-router + vue-resource + iview2
composer install
php artisan migrate
php artisan db:seed
修改src/config/config.js 配置文件,设置api_domain cdn
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
- /index.html 首页地址
- /login.html 后台登录地址
- /admin.html 后台首页地址