Skip to content

A full-stack Car Rental web application built with MERN stack. Users can search, filter, and book cars by location and date. Owners can manage bookings and update statuses in real-time.

License

Notifications You must be signed in to change notification settings

Sneh0510/Car-Rental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗 Car Rental Application

A full stack car rental platform that allows users to browse, book, and manage car rentals, while owners can list and manage their vehicles and bookings.


✨ Features

👤 User Features

  • 🔍 Browse available cars with detailed information
  • 🖼️ View car details and images
  • 📅 Book cars for specific dates
  • 📂 Manage personal bookings

👨‍💼 Owner Features

  • 📊 Owner dashboard for managing cars and bookings
  • ➕ Add, ✏️ edit, or ❌ remove car listings
  • 📖 View and manage bookings for owned cars

🌐 General

  • 📱 Responsive and modern UI
  • 🔐 Authentication and authorization for users and owners

🛠️ Tech Stack

React Vite CSS Node.js Express MongoDB Multer ImageKit JWT


🗂️ Project Structure

Car-Rental/
  client/      # Frontend React app
  server/      # Backend Node.js/Express API

🚀 Getting Started

✅ Prerequisites

  • 📦 Node.js (v16+ recommended)
  • 📁 npm or yarn
  • 🗄️ MongoDB instance (local or cloud)

⚙️ Setup

1️⃣ Clone the repository

git clone https://github.com/Sneh0510/Car-Rental.git
cd Car-Rental

2️⃣ Install dependencies

  • For the backend:
    cd server
    npm install
  • For the frontend:
    cd ../client
    npm install

3️⃣ Configure Environment Variables

  • Create a .env file in the server directory with your MongoDB URI, JWT secret, and ImageKit credentials.

4️⃣ Run the application

  • Start the backend server:

    cd server
    npm start
  • Start the frontend app:

    cd ../client
    npm run dev
  • The frontend will be available at http://localhost:5173 (default Vite port).

📄 Licence

This project is licensed under the MIT Licence.

About

A full-stack Car Rental web application built with MERN stack. Users can search, filter, and book cars by location and date. Owners can manage bookings and update statuses in real-time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages