{"id":22832529,"url":"https://github.com/imd10/cs342-car-rental","last_synced_at":"2025-04-23T21:24:33.095Z","repository":{"id":265678657,"uuid":"893384017","full_name":"iMD10/CS342-Car-Rental","owner":"iMD10","description":"A Java-based Car Rental System with a GUI for bookings, admin management, notifications, and reports, connected to a PostgreSQL database hosted on AWS.","archived":false,"fork":false,"pushed_at":"2025-01-24T17:39:40.000Z","size":5275,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T03:41:14.892Z","etag":null,"topics":["aws","car-rental","desktop-application","java","postgresql","swing","visual-programming"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iMD10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-24T09:55:35.000Z","updated_at":"2025-01-24T17:39:44.000Z","dependencies_parsed_at":"2024-12-18T05:30:56.019Z","dependency_job_id":null,"html_url":"https://github.com/iMD10/CS342-Car-Rental","commit_stats":null,"previous_names":["imd10/cs342-car-rental"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMD10%2FCS342-Car-Rental","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMD10%2FCS342-Car-Rental/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMD10%2FCS342-Car-Rental/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMD10%2FCS342-Car-Rental/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iMD10","download_url":"https://codeload.github.com/iMD10/CS342-Car-Rental/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250515812,"owners_count":21443490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","car-rental","desktop-application","java","postgresql","swing","visual-programming"],"created_at":"2024-12-12T21:07:52.113Z","updated_at":"2025-04-23T21:24:33.080Z","avatar_url":"https://github.com/iMD10.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CS342 Car Rental System\n\nThis is a Java-based desktop application designed to provide a seamless vehicle rental experience. This project features a graphical user interface for customers and admins, built using Java Swing, with PostgreSQL as the database hosted on AWS. The system supports vehicle booking, user management, and administrative controls.\n\n---\n\n## Table of Contents\n\n1. [Features](#features)\n2. [Application Overview](#application-overview)\n3. [Folder Structure](#folder-structure)\n4. [Technologies Used](#technologies-used)\n5. [Installation](#installation)\n6. [Usage](#usage)\n7. [Contributors](#contributors)\n\n---\n\n## Features\n\n### Customer Features\n- **Browse Vehicles**: View available vehicles and filter by type or availability date.\n- **Book Vehicles**: Easily book vehicles and specify rental dates.\n- **View Bookings**: Manage active, completed, or canceled bookings.\n- **Notifications**: Receive reminders about booking deadlines.\n- **Invoices**: Generate and download PDF invoices for completed bookings.\n- **My Account**: Update account details, such as name, phone number, and password.\n\n### Admin Features\n- **Manage Vehicles**: Add, edit, or remove vehicles in the fleet.\n- **Manage Bookings**: Oversee all bookings, including the ability to cancel them.\n- **Generate Reports**: View detailed analytics, such as total revenue, active bookings, and customer statistics.\n\n---\n## Application Overview\n\n![Customer Dashboard](https://github.com/user-attachments/assets/52feb2ad-b442-4ff4-9f7b-d6f9a68d4af8)\n\nThe customer dashboard provides a simple and intuitive interface for users to browse vehicles, book rentals, and view notifications.\n\n---\n![Admin Dashboard](https://github.com/user-attachments/assets/61cfdb6b-3e9c-460c-a8bd-050bbf53ad1c)\n\n\nThe admin dashboard allows administrators to manage vehicles, bookings, and view detailed reports.\n\n---\n## Folder Structure\n\n```\nCS342-Car-Rental/\n├── .idea/                 # IntelliJ IDEA configuration files\n├── report/                # Documentation files for the project\n├── src/\n│   ├── main/java/org/example/\n│       ├── classes/       # Core business entities (e.g., User, Booking, Vehicle)\n│       ├── common/        # Shared utilities (e.g., Validation, DatabaseHandler)\n│       ├── controllers/   # Controllers for handling database operations\n│       ├── res/           # Resources (images/icons for GUI) and schema for database in SQL\n│       ├── view/          # Main GUI components (Admin and Customer GUIs)\n│       ├── views/         # Additional GUI components for customer functionality\n│       └── Main.java      # Main entry point of the application\n├── .gitignore             # Git ignore rules\n├── pom.xml                # Maven project configuration\n```\n\n### Explanation of Key Folders\n- **`classes/`**: Contains core entities, such as `User`, `Vehicle`, `Booking`, and `Invoice`.\n- **`common/`**: Provides shared utilities, including error handling and input validation.\n- **`controllers/`**: Implements the logic for interacting with the PostgreSQL database (e.g., fetching vehicles, bookings, and invoices).\n- **`view/`**: Includes GUI components like admin and customer dashboards.\n- **`views/`**: Contains additional customer-focused GUIs (e.g., booking notifications).\n\n---\n\n## Technologies Used\n\n- **Java (Swing)**: For creating the graphical user interface.\n- **PostgreSQL**: AWS-hosted relational database for storing application data.\n- **Maven**: For managing project dependencies and building the application.\n- **iText**: For generating PDF invoices.\n- **FlatLaf**: Modern UI design for enhancing the application's appearance.\n\n---\n\n## Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/iMD10/CS342-Car-Rental.git\n   cd CS342-Car-Rental\n   ```\n\n2. **Database setup**:\n   - Set up a PostgreSQL database and import the required tables.\n   - Update the database connection details in the `DatabaseHandler` class.\n\n3. **Build the project**:\n   ```bash\n   mvn clean install\n   ```\n\n4. **Run the application**:\n   Open and run `Main.java` from your IDE.\n\n---\n\n## Usage\n\n### For Customers:\n- **Sign Up**: Register with your details to create a new account.\n- **Book a Vehicle**: Browse the available vehicles and book one for your desired dates.\n- **Invoices**: View and generate invoices for completed bookings.\n- **My Account**: Update your personal information, such as phone number and password.\n\n### For Admins:\n- **Manage Vehicles**: Add, update, or delete vehicles in the fleet.\n- **View Reports**: Access analytics, such as revenue and active bookings.\n- **Manage Bookings**: Oversee all bookings and handle cancellations.\n\n---\n\n## Contributors\n\nThis project was collaboratively developed by:\n- **Muhannad Majed**  \n  GitHub: [@iMD10](https://github.com/iMD10)\n\n- **Mohammed Saleh**  \n  GitHub: [@rayq-q](https://github.com/rayq-q)\n\n- **Mohammed Mansour**  \n  GitHub: [@MrM3ROF](https://github.com/MrM3ROF)\n\n- **Eyad Fahad**  \n  GitHub: [@commando-xxt](https://github.com/commando-xxt)\n\n- **Amer Mohammed**  \n  GitHub: [@3wex](https://github.com/3wex)\n\n- **Faisal Qasim**  \n  GitHub: [@csx30](https://github.com/csx30)\n\n---\n\nWe hope you find our project useful! Feel free to contribute or report issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimd10%2Fcs342-car-rental","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimd10%2Fcs342-car-rental","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimd10%2Fcs342-car-rental/lists"}