Skip to content

A basic Vue Setup on Laravel 8. Including Sass, Vue-Router & Vuex.

Notifications You must be signed in to change notification settings

MartinsOnuoha/laravel-vue-minimal

Repository files navigation

Laravel-Vue-Minimal

Get started quickly with Vue, Vuex, Vue-Router in Laravel.

Setup

Clone the repository

git clone https://github.com/MartinsOnuoha/laravel-vue-minimal.git

Install Dependencies

yarn && composer install

Copy .env

cp .env.example .env

Generate App Key

php artisan key:generate

Start Server

php artisan serve
yarn run watch

Project Structure

Vue

You can find the Vue app structure under resources/js

📁 Components
📁 Mixins
📁 Pages
📁 Router
📁 Store
📁 Styles
  🗳 App.vue
  🗳 App.js

Docker

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.

About

A basic Vue Setup on Laravel 8. Including Sass, Vue-Router & Vuex.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published