RentifyHub is a web application developed with PHP, Laravel framework, and MySQL database, aiming to streamline the management of car rentals. This project focuses on handling individuals and a fleet of cars, providing essential features such as:
-
Car Management:
- Create, modify, and delete entries for cars in the rental fleet.
- View a list of all cars in the fleet.
-
Rental History:
- List individuals who have rented a car.
-
Rental Transactions:
- Allow individuals to borrow and return cars.
-
User Authentication:
- Users must create an account and be logged in to rent a vehicle.
-
Access Control:
- Unauthenticated users can view the list of vehicles.
- Administrative functionalities, such as modification, deletion, and addition of vehicles, are available only to users with administrative profiles.
-
User-Friendly Navigation:
- All pages include a menu (header) for seamless navigation between different sections.
RentifyHub uses a MySQL database to store information about cars, users, and rentals. Follow these steps to set up the database:
-
Create Database User:
CREATE USER user_rentifyhub IDENTIFIED BY 'passwd_rentifyhub';
-
Create Database:
CREATE DATABASE db_rentifyhub;
-
Grant Privileges:
GRANT ALL PRIVILEGES ON db_rentifyhub.* TO user_rentifyhub;
Make sure to replace 'passwd_rentifyhub'
with a strong password of your choice. Update your .env
file in the Laravel project with the corresponding database connection details.
Follow these steps to get RentifyHub up and running on your local environment:
-
Clone the Repository:
git clone https://github.com/username/RentifyHub.git cd RentifyHub
-
Install Dependencies:
composer install
-
Set Up Database:
-
Create a new MySQL database user and database (follow the instructions above).
-
Copy the
.env.example
file to.env
and configure the database connection with the created user and database. -
Run migrations and seed the database:
php artisan migrate --seed
-
-
Generate application key
php artisan key:generate
-
To create the symbolic link, you may use the storage:link Artisan command
php artisan storage:link
-
Start the Development Server:
php artisan serve
-
Access the Application: Open your web browser and go to
http://localhost:8000
to access RentifyHub.
Contributions are welcome! Please follow the guidelines in CONTRIBUTING.md for more details.
This project is licensed under the MIT License.
- Logo design by Guy Ahonakpon GBAGUIDI.