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.
- 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
- Frontend: React + TypeScript
- State management: Redux Toolkit, Redux Persist
- Forms & Validation: Formik, Yup
- Styling: Tailwind CSS, Headless UI
- Networking: Axios
- Build tool: Vite
- Utilities: clsx, custom hooks, and helper functions
- Node.js (>= 18.x recommended)
- npm (comes with Node.js)
# Clone the repo
git clone https://github.com/your-username/rental-car-app.git
# Enter project directory
cd rental-car-app
# Install dependencies
npm installnpm run devApp will be avalable at (http://localhost:5173).
npm run build
npm run previewsrc/
├── 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
Currently, the API base URL is hardcoded in Axios utils.
Live Demo: Rental Car
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a PR.
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.