Skip to content

taha3313/car-rental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Car Rental System 🚗

This is a full-stack car rental system built using React & TypeScript for the front end and Spring Boot (Spring Security, JPA) for the back end, with MySQL as the database. The system allows users to easily browse, book, and manage car rentals.


Features

  • User Authentication: Secure login and registration using Spring Security.
  • Car Management: View, add, update, and delete cars with details like model, price per day, year, and brand.
  • Rental Management: Book cars, manage reservations, and print invoices.
  • Customer Dashboard: Separate pages for customers to view available cars and their rental history.
  • Admin Panel: Manage cars, brands, and rental records.
  • Responsive Design: Optimized for both desktop and mobile devices.

Tech Stack

  • Frontend: React & TypeScript
  • Backend: Spring Boot (Spring Security, JPA)
  • Database: MySQL

Prerequisites

Make sure you have the following installed on your system:


Getting Started

1. Clone the Repository

git clone https://github.com/<your-username>/carrental.git
cd carrental

2. Backend Setup (Spring Boot)

  1. Navigate to the Spring Boot project folder:
    cd backend
  2. Update application.properties with your MySQL credentials:
    spring.datasource.url=jdbc:mysql://localhost:3306/car_rental_db
    spring.datasource.username=your_username
    spring.datasource.password=your_password
    spring.jpa.hibernate.ddl-auto=update
  3. Run the Spring Boot application:
    ./mvnw spring-boot:run

3. Frontend Setup (React & TypeScript)

  1. Navigate to the React project folder:
    cd frontend
  2. Install dependencies:
    npm install
  3. Start the React development server:
    npm start

Usage

  • Visit http://localhost:3000 to access the frontend.
  • Backend runs on http://localhost:8080.
  • Admin can manage cars, brands, and rental records.
  • Customers can browse available cars and manage their bookings.

Screenshots

coming soon

Contributing

Feel free to submit issues, fork the repository, and send pull requests. Contributions are welcome!


Contact

For any questions or feedback, feel free to reach out!

About

This is a full-stack car rental system built using React & TypeScript for the front end and Spring Boot (Spring Security, JPA) for the back end, with MySQL as the database. The system allows users to easily browse, book, and manage car rentals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages