Laravel 11 Project with Vue.js, Inertia.js, and MySQL

This project is a web application built with Laravel 11, Vue.js, Inertia.js, and MySQL. It includes configuration for creating seeders and a default user.

Requirements

  • PHP >= 8.1
  • Composer
  • Node.js & npm
  • MySQL

Installation

  1. Clone the repository:

    git clone 
    cd 
  2. Install PHP dependencies:

    composer install
  3. Install Node.js dependencies:

    npm install
  4. Copy the environment file and configure your database:

    cp .env.example .env

    Edit the .env file to configure the connection to your MySQL database:

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=your_database_name
    DB_USERNAME=your_username
    DB_PASSWORD=your_password
  5. Generate the application key:

    php artisan key:generate
  6. Run the migrations and seeders:

    php artisan migrate --seed

    This will create the necessary tables in the database and run the seeders, including creating a default user with the email admin@admin.com and password admin.

Usage

To start the development server, run:

php artisan serve

To compile the Vue.js assets, run:

npm run dev

Commands

Command to create visits

php artisan app:create-visit

Api documentation

php artisan l5-swagger:generate

Route swagger:

http://localhost:8000/api/documentation