Laravel12_Vue3_Inertia_Tailwind Tailwind Templates

Laravel12_vue3_inertia_tailwind

Laravel12_Vue3_Inertia_Tailwind

This is a complete Single Page Application (SPA) from the ground up using the modern VILT stack — Laravel 12, Vue 3, Inertia.js, and Tailwind CSS. This full-stack project covers everything from authentication and routing to database management and responsive frontend design.

Table of Contents

Prerequisites

Before you start, ensure you have the following installed:

Setup Instructions

  1. Clone the Repository

Clone the project to your local machine:

git clone <your-repo-url>
cd <your-repo-folder>
  1. Set Up Environment Variables

Copy the .env.example to a new .env file:

cp .env.example .env

Edit the .env file and configure your database credentials:

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=your_database
DB_USERNAME=your_user
DB_PASSWORD=your_password
  1. Build and Start Docker Containers

Use Docker Compose to build and start the containers:

docker-compose up -d --build

This will build the containers defined in docker-compose.yml, including PHP, Nginx, PostgreSQL, and Redis.

  1. Install Dependencies with Composer

Install PHP dependencies inside the app container:

docker exec -it Laravel12_Vue3_Inertia_Tailwind_php composer install

If you need to install a specific package, you can run:

docker exec -it Laravel12_Vue3_Inertia_Tailwind_php composer require <package-name>
  1. Install front-end dependencies using npm

Install Frontend Dependencies inside the app container:

docker exec -it Laravel12_Vue3_Inertia_Tailwind_php npm install
  1. Generate Application Key

Run the following command to generate a new Laravel application key:

docker exec -it Laravel12_Vue3_Inertia_Tailwind_php php artisan key:generate
  1. Migrate the Database

Run the database migrations to set up the required tables:

docker exec -it Laravel12_Vue3_Inertia_Tailwind_php php artisan migrate --seed

Running the Application

  1. Start Vite Dev Server ```bash

  2. docker exec -it Laravel12_Vue3_Inertia_Tailwind_php npm run dev

    
    
  3. Access the Application in Your Browser

After the containers are up, visit http://localhost in your browser. You should see your Laravel app running.

Top categories

Loading Svelte Themes