This guide provides step-by-step instructions to set up and run this project, which includes:
- Laravel Breeze for authentication.
- React integrated via CDN.
- Livewire for dynamic components.
Make sure you have the following installed on your system:
- PHP >= 8.1
- Laravel = 10.0
- Composer
- Node.js and npm
- MySQL or other supported database
git clone <repository-url>
cd <project-directory>
Install the required PHP dependencies using Composer:
composer install
Copy the example .env file and configure it:
cp .env.example .env
Update the .env file with your database details:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=<your-database-name>
DB_USERNAME=<your-database-username>
DB_PASSWORD=<your-database-password>
php artisan key:generate
Set up the database schema by running migrations:
php artisan migrate
php artisan db:seed --class=AdminSeeder
php artisan db:seed --class=TaskSeeder
php artisan livewire:publish
php artisan serve
- User : admin@gmail.com
- Password : 12345678
- User : example@mail.com
- Password : password
Use User mail ID and password are 'password' for all seeder users.
cp .env.example .env.testing
php artisan key:generate
DB_CONNECTION=sqlite
DB_DATABASE=:memory:
Run the following command to create the test database:
php artisan migrate --env=testing
Run all tests using the PHPUnit test runner:
php artisan test