A full-stack web application for managing car rentals, built with modern web technologies.
- User authentication and authorization
- Car inventory management
- Booking and reservation system
- Admin dashboard
- Responsive design
- Real-time updates
- 💳 Secure Payment Processing with Razorpay integration
- Multiple payment methods support (Cards, UPI, Netbanking, Wallets)
- Secure transaction handling
- Payment history tracking
- Refund management
- React.js
- Vite
- React Router
- Axios for API calls
- Razorpay Checkout for payment processing
- Node.js
- Express.js
- MongoDB
- JWT Authentication
- RESTful API
- Razorpay API integration
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Navigate to the backend directory:
cd Backend- Install dependencies:
npm install- Create a
.envfile in the backend directory with the following variables:
PORT=5000
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_key_secret
- Start the backend server:
npm start- Navigate to the frontend directory:
cd Frontend- Install dependencies:
npm install- Start the development server:
npm run devCar_Rental/
├── Backend/
│ ├── controllers/ # Request handlers
│ ├── models/ # Database models
│ ├── routes/ # API routes
│ ├── middleware/ # Custom middleware
│ ├── utils/ # Utility functions
│ └── index.js # Entry point
│
└── Frontend/
├── src/ # React source code
├── public/ # Static assets
└── package.json # Frontend dependencies
The application uses JWT (JSON Web Tokens) for authentication. Users can:
- Register new accounts
- Login with existing credentials
- Access protected routes based on their role
The backend provides a RESTful API with the following endpoints:
/api/auth/*- Authentication routes/api/cars/*- Car management routes/api/bookings/*- Booking management routes/api/users/*- User management routes
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Om Wanere - Initial work
- Thanks to all contributors who have helped shape this project
The application integrates with Razorpay for secure payment processing. Features include:
- Secure payment processing for cards, UPI, netbanking, and wallets
- Automatic payment verification
- Refund processing
- Payment history tracking
To enable payment processing, add the following to your backend .env file:
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_key_secret