Get started quickly with Vue, Vuex, Vue-Router in Laravel.
git clone https://github.com/MartinsOnuoha/laravel-vue-minimal.git
npm && composer install
cp .env.example .env
php artisan key:generate
php artisan migraye:fresh --seed
npm i
php artisan serve
yarn run watch
You can find the Vue app structure under resources/js
📁 Components
📁 Mixins
📁 Pages
📁 Router
📁 Store
📁 Styles
🗳 App.vue
🗳 App.js
This project uses Sail to run the app within a docker environment. If you would like to run the project within a docker container you can do this by first building the container and then running it.
Within the project directory run:
docker-compose build
After the build is complete you can start the container by running:
docker-compose up
Alternatively if you have composer installed correclty and the composer command is available, then you can run:
composer run-script sail
You should find the app running in any port value set for APP_PORT
in .env
.