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.
- PHP >= 8.1
- Composer
- Node.js & npm
- MySQL
-
Clone the repository:
git clone cd
-
Install PHP dependencies:
composer install
-
Install Node.js dependencies:
npm install
-
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
-
Generate the application key:
php artisan key:generate
-
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 passwordadmin
.
To start the development server, run:
php artisan serve
To compile the Vue.js assets, run:
npm run dev
Command to create visits
php artisan app:create-visit
php artisan l5-swagger:generate