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

npm && composer install

Copy .env

cp .env.example .env

Generate App Key

php artisan key:generate
php artisan migraye:fresh --seed
npm i

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.