A modern Car Rental platform built with the MERN stack, offering users a seamless car booking experience and owners an interactive dashboard to manage cars, bookings, and revenue.
π’ Live Demo: https://car-rental-client-nu.vercel.app
- π Authentication & Authorization for users and car owners
- π Car Booking System with status tracking
- π Owner Dashboard: Total cars, bookings, revenue, and recent activity
- π· Optimized Image Uploads via ImageKit.io
- ποΈ Smooth Animations using Motion/React
- π± Responsive Design (mobile & desktop friendly)
- π¬ Real-time Notifications via React Hot Toast
| Technology | Role |
|---|---|
| MongoDB | Database |
| Express.js | Backend API |
| React.js | Frontend UI |
| Node.js | Runtime Environment |
| ImageKit.io | Image Optimization/CDN |
| TailwindCSS | Styling |
| Framer Motion | Animations |
| React Hot Toast | User feedback |
| JWT | Auth Token Management |
car-rental/ βββ client/ # React frontend β βββ src/ β βββ components/ β βββ pages/ β βββ context/ β βββ App.js βββ server/ # Node.js backend β βββ models/ β βββ routes/ β βββ controllers/ β βββ index.js βββ .env βββ README.md
- Node.js
- MongoDB (local or Atlas)
- ImageKit.io account
- Clone Repository:
git clone https://github.com/Jay-me07/CarRental.git cd car-rental
2.cd server npm install
3.cd ../client npm install
-
Create .env file in server/: MONGO_URL=your_mongodb_url JWT_SECRET=your_jwt_secret IMAGEKIT_PUBLIC_KEY=your_imagekit_public_key IMAGEKIT_PRIVATE_KEY=your_imagekit_private_key IMAGEKIT_URL_ENDPOINT=your_imagekit_url
-
Run the App:
cd server && npm run server cd client && npm run dev