Installation of Vue.js + Laravel
Pre-requisite
Composer
Download Composer at https://getcomposer.org/
Node.js
Download Node.js at https://nodejs.org/en/
Installing Laravel
Firstly, run this command in CMD. The name "backend" is the folder name. It can be changed to any other name.
composer create-project laravel/laravel backend
Then, press "Y".

Then, run this command.
cd backend
Then, run this command. This command will provide the link to view the Laravel.
php artisan serve
Installing Vue.js
Firstly, run this command in CMD. The name "frontend" is the folder name. It can be changed to any other name.
npm create vite@latest frontend --template vue
Then, press "y".

Then, choose "Vue".

Then, choose "JavaScript".

Then, run this command.
cd frontend
Then, run this command.
npm install
Then, run this command. This command will provide the link to view the Vue.
npm run dev
Last updated