rufusmaiwald / lumen-vue-app by rufusmaiwald

The Laravel Lumen Framework as backend API with Vue.js using vue-cli included
4
10
3
Package Data
Maintainer Username: rufusmaiwald
Maintainer Contact: dev@rufusmaiwald.de (Rufus Maiwald)
Package Create Date: 2019-02-03
Package Last Update: 2020-12-24
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-18 15:25:32
Package Statistics
Total Downloads: 4
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 10
Total Watchers: 3
Total Forks: 3
Total Open Issues: 0

lumen-vue-app

This project is a basic lumen 5.8 app that contains a built in vue.js app (built with vue-cli 3.7.0).

Use the ./routes/web.php to add more php backend sites. All other traffic will be redirected to the vue app.

Important directory changes

Vue files are located in ./resources/js/vue

The "public" folder from vue is located in ./resources/static. All static assets will be moved to the ./public folder after npm run build

Project setup

npm install
composer install

Compiles and hot-reloads for development

npm run serve (Vue.js development server)
php -S localhost:8000 -t public (PHP development server)

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize Vue configuration

See Configuration Reference.