基于lumen+vue的完全前后端分离的spa项目demo
- php7.1
- composer
- lumen5.5
- dingo/api
- jwt
- elasticsearch
- mysql
cd path/to/gifcool-new/backend/
composer install
php artisan migrate
copy .env.example .env
ln -s path/to/gifcool-new/backend/storage/app/avatar path/to/gifcool-new/backend/public/avatar
- webpack
- vue
- vuex
- vue-router
- mint-ui
cd path/to/gifcool-new/frontend/
npm install (or cnpm install)
npm run dev
可以在 api/index.js 中调整api的host