8000 GitHub - ashraful2871/Car-rental-client: This site is main purpose of any user post for car rent and any user want the can rent a car for their uses. This is designed to offer an easy and efficient way for users to find and book vehicles for their travel needs. It provides features like search, sorting, and secure booking to smooth the user experience.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This site is main purpose of any user post for car rent and any user want the can rent a car for their uses. This is designed to offer an easy and efficient way for users to find and book vehicles for their travel needs. It provides features like search, sorting, and secure booking to smooth the user experience.

Notifications You must be signed in to change notification settings

ashraful2871/Car-rental-client

Repository files navigation

🚗 Car Rent Platform

A user-friendly car rental platform that allows users to post their cars for rent and book vehicles for travel. The system ensures secure booking, easy car management, and real-time updates.

🌐 Live Site: Car Rent Platform


📸 Screenshots

🌙 Dark Mode

🏠 Home Page

Home Page - Dark Mode

🚗 Available Cars Page

Available Cars Page - Dark Mode

➕ Add Car Page

Add Car Page - Dark Mode

☀️ Light Mode

🏠 Home Page

Home Page - Light Mode

🚗 Available Cars Page

Available Cars Page - Light Mode

➕ Add Car Page

Add Car Page - Light Mode


🚀 Features

List Cars for Rent - Users can add cars for rent, which automatically update on the UI.
Manage My Cars & My Bookings - Users can view and manage only their cars and bookings.
Cancel Bookings - Users can cancel their bookings anytime.
Availability Check - "Available Cars" page shows which cars are rentable, disabling booking for unavailable ones.
Secure Booking - Ensures a safe rental experience for users.
Search & Sorting - Find cars easily with filtering options.


🛠 Installation

  1. Clone the repository:
    git clone https://github.com/ashraful2871/Car-rental-client.git
    cd car-rent-platform

🔑 Environment Variables

Create a .env.local file in the root folder and add:

VITE_apiKey=ENTER_YOUR_API_KEY_HERE
VITE_authDomain=ENTER_YOUR_AUTH_DOMAIN_HERE
VITE_projectId=ENTER_YOUR_PROJECT_ID_HERE
VITE_storageBucket=ENTER_YOUR_STORAGE_BUCKET_HERE
VITE_messagingSenderId=ENTER_YOUR_MESSAGING_SENDER_ID_HERE
VITE_appId=ENTER_YOUR_APP_ID_HERE
VITE_API_URL=HERE_IS_YOUR_BACKEND_API_URL

💻 Run Locally

  1. Make sure you have Node.js installed.
  2. Install dependencies:
    npm install
  3. Run the project locally:
    npm run dev
  4. Open the local server link in your browser.

🔥 Hosting with Firebase

  1. Install Firebase CLI globally:
    npm install -g firebase-tools
  2. Login to Firebase:
    firebase login
  3. Initialize Firebase in the project:
    firebase init
    • Select Hosting and use an existing Firebase project.
    • Set dist (or build) as the public directory.
    • Configure as a single-page app (SPA).
  4. Deploy the project:
    firebase deploy
  5. Copy the hosting URL provided in the terminal.

📦 Dependencies

Main Dependencies

  • react
  • react-router-dom
  • firebase
  • axios
  • recharts
  • sweetalert2
  • swiper
  • framer-motion
  • react-hot-toast

Development Dependencies

  • vite
  • eslint
  • tailwindcss
  • daisyui

To install all dependencies:

npm install

For Server Setup:

Car Rent Platform server


🚀 Happy Coding! 🚀

About

This site is main purpose of any user post for car rent and any user want the can rent a car for their uses. This is designed to offer an easy and efficient way for users to find and book vehicles for their travel needs. It provides features like search, sorting, and secure booking to smooth the user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0