
## IMIA API 
This repository contains a Laravel API project that utilizes a MySQL database and is hosted on cPanel 

## Setup

1-Install Laravel: Make sure you have Laravel installed on your system.
You can install it using Composer by running the following command in your terminal:
>composer global require laravel/installer



3-Configure the database: Open the .env file in the root directory of your Laravel project. Update the following lines with your MySQL database credentials:

DB_CONNECTION=mysql

DB_HOST=127.0.0.1

DB_PORT=3306

DB_DATABASE=malik

DB_USERNAME=root

DB_PASSWORD=

4- Install dependencies
>Composer install


5-Run database migrations: Laravel uses database migrations to create database tables.
In your terminal, navigate to the root directory of your Laravel project and run the following command:

>php artisan migrate


6- Run project with the following command:

>php artisan serve


## Contributing Guidelines
When adding a new feature or making changes to the project, follow these guidelines:

# 1 
Create a new branch with your name and the name of the new feature. Use kebab case (lowercase letters and hyphens) to name your branch.

>git checkout -b your-name-new-feature

1-Implement the changes or add the new feature to your branch.

2-Commit your changes with descriptive commit messages.
>git commit -m "Add new feature: description of the feature"


3-Push your branch to the remote repository.
>git push origin your-name-new-feature



4-Create a pull request on the repository and provide a detailed description of your changes.
Once your pull request is approved and merged into the main branch, it will be deployed to the cPanel hosting.
Please make sure to follow coding standards, write unit tests where applicable, and keep the codebase clean and maintainable.

## Befor Push:
make sure to update name of the .env.prod to .env ## Enveriment
and change .env to .env.dev ## Dev Enveriment



## Deployment to cPanel

is Auto Deployment with Github Action CI/CD



