Single page application using Vue.js, Inertia.js, Laravel, Tailwind. We will learn step by step how we can use vilt stack to create SAPs.
In the context of programming, "Composer" refers to a dependency manager for PHP programming language. Here are the instructions for installation on Linux, Unix, or MacOS. Go through the instructions and install PHP and Composer.
Go to the specific directory where you want to create your Laravel project. Here Run the following command to install the Laravel base project:
composer create-project laravel/laravel
Inertia Here is essentially a client-side routing library. It allows you to make page visits without forcing a full page reload. This is done using the <Link>
component, a light-weight wrapper around a normal anchor link. When you click an Inertia link, Inertia intercepts the click and makes the visit via XHR instead.
Vue.js Here is an open-source JavaScript framework used for building user interfaces and single-page applications.
npm install vue
composer require inertiajs/inertia-laravel
php artisan inertia:middleware
Once the middleware has been published, append the HandleInertiaRequests middleware to the web middleware group in your application's bootstrap/app.php
file.
npm install @inertiajs/vue3
Vite Here is a build tool and development server for modern web development projects, particularly those using JavaScript frameworks like Vue.js, React, or Svelte.
npm install @vitejs/plugin-vue
Tailwind CSS Here is like a toolbox filled with small, ready-to-use tools (classes) that you can apply directly to your HTML elements to style them.
npm install tailwindcss@latest
Note: After installing all dependencies, you may run npm run dev
command in your terminal.