To start the Laravel project from a repository, please follow the detailed steps below. Ensure you have the necessary requirements installed before proceeding.
- Database Engine: MySQL (or MariaDB) is required to run the database for this project.
- PHP Version: PHP 8.3 or later. It is recommended to use Laravel Herd as it simplifies environment setup for Laravel projects, including PHP, MySQL, and other necessary extensions.
Clone the project repository and navigate into the project directory.
git clone https://github.com/robinson-urena-hytech/task-management.git
cd task-management
Use Composer to install all necessary dependencies.
composer install
Copy the sample environment file and create your .env
file.
cp .env.example .env
Generate a unique application key for Laravel.
php artisan key:generate
Open the .env
file and update the following settings:
- Database Configuration: Update
DB_DATABASE
,DB_USERNAME
, andDB_PASSWORD
to match your MySQL setup. - Other Settings: Modify other configurations as needed.
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password
Apply the database schema with migrations.
php artisan migrate:fresh --seed
Start Laravel’s development server to test the application locally.
php artisan serve
- Email: administrator@domain.com
- Password: Administrator
- PATH END POINT: /api/signIn [POST]
- Using Laravel Herd: If you're using Laravel Herd, it will automatically configure PHP, MySQL, and necessary dependencies. Simply ensure Herd is installed and running, then navigate to the project folder and run:
herd serve