Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kulakaa073/rental-car

Repository files navigation

🚗 Rental Car App

A modern web application for renting cars. Users can browse the catalogue, filter cars by brand, mileage, and price, mark favourites, and make reservations with a simple booking form.
image image image


✨ Features

  • Home splash page to introduce the app
  • Car catalogue with advanced filtering:
    • Filter by brand, mileage, and price
  • Favourites: save cars for quick access
  • Reservations: book a car with a date range and custom form validation
  • Custom UI/UX:
    • Custom scrollbar
    • Date range picker
    • Responsive Tailwind design
  • Separate pages for favourites and reservations

🛠 Tech Stack


🚀 Getting Started

Prerequisites

  • Node.js (>= 18.x recommended)
  • npm (comes with Node.js)

Installation

# Clone the repo
git clone https://github.com/your-username/rental-car-app.git

# Enter project directory
cd rental-car-app

# Install dependencies
npm install

Running locally

npm run dev

App will be avalable at (http://localhost:5173).

Building for production

npm run build
npm run preview

📁 Folder Structure

src/
 ├── assets/         # Images and other assets
 ├── components/     # Reusable UI components (Button, Loader, etc.)
 ├── pages/          # Page-level components (HomePage, CatalogPage, etc.)
 ├── redux/          # Redux slices, operations, selectors
 ├── styles/         # Global and custom styles
 ├── types/          # Generic and utility types 
 ├── utils/          # Utility functions (e.g. formatBigNumbers, addDays)
 └── main.tsx        # App entry point

🔑 Environment Variables

Currently, the API base URL is hardcoded in Axios utils.


📸 Demo

Live Demo: Rental Car


🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a PR.


📄 License

This project is licensed under the MIT License.

MIT License

Copyright (c) 2025 Shade

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published