Skip to content

vasylkivt/CarGoUA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Netlify Status

CarGoUA App

CarGoUA Screenshot

This is a React application for a car rental company operating in Ukraine. Users can explore information about the company's services, browse a catalog of available cars, and view favorite listings. The app also allows users to filter cars based on make, hourly rental price, and mileage range.

Table of Contents

Features

  • Home Page: Provides a general overview of the company's services.
  • Catalog Page: Displays a catalog of cars with filtering options.
  • Favorites Page: Shows listings added to the user's favorites.
  • Advertisement Details: Modal with detailed information on a selected car.
  • Learn More Button: Opens a modal with detailed information about a car.
  • Contact Button: Enables users to contact the company via phone.

Getting Started

To run the application locally, follow these steps:

  1. Clone the repository: git clone https://github.com/vasylkivt/CarGoUA.git
  2. Install dependencies: npm install
  3. Run the app: npm run dev
  4. Open http://localhost:5173 in your browser.

Technologies Used

  • React
  • Redux
  • React Router
  • Axios (for API requests)
  • Mockapi.io (for mock backend)

API

The application uses a mock API created with Mockapi.io. The adverts resource contains information about car listings.

Redux State

The Redux store manages the state of the application, including user favorites and filters.

Routing

The app uses React Router for navigation. The available routes are:

  • / - Home Page
  • /catalog - Catalog Page
  • /favorites - Favorites Page

If a user tries to access a non-existent route, they will be redirected to the home page.

Filtering

Users can filter car listings based on make, hourly rental price, and mileage range. The dropdowns and input fields provide a seamless filtering experience.

Pagination

The catalog page displays 12 listings per page, and additional listings can be loaded with the "Load more" button. Pagination is implemented on the backend.

About

This is a React application for a car rental company. Users can learn about services, view cars, and add their favorites to ads 😊 All this with ease thanks to React, Redux, and React Router πŸš—βœ¨.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors