Welcome to the Car Rental project! This application allows users to rent cars easily and efficiently. It provides a user-friendly interface for both customers and administrators to manage car rentals.
- User registration and authentication
- Browse available cars for rent
- Book a car for a specified duration
- View booking history
- Admin panel for managing cars and bookings
- Search and filter options for cars
- Responsive design for mobile and desktop
- Frontend: HTML, CSS, JavaScript, React
- Backend: Node.js, Express.js
- Database: MongoDB
- Deployment: Vercel
- Clone the repository to your local machine:
git clone https://github.com/saurabh-dev-vns/car-rental.git
- Navigate to the project directory:
cd car-rental
- Navigate to the client directory:
cd client
- Install dependencies:
npm install
- Create a
.env
file in the client directory and add the necessary configurations. For example:VITE_API_URL=http://localhost:5000/api VITE_API_KEY="your_api_key_here" VITE_PROJECT_ID="your_project_id_here" VITE_AUTH_DOMAIN="your_auth_domain_here" VITE_STORAGE_BUCKET="your_storage_bucket_here" VITE_MESSAGING_SENDER_ID="your_messaging_sender_id_here" VITE_APP_ID="your_app_id_here" VITE_MEASUREMENT_ID="your_measurement_id_here"
- Start the development server:
npm run dev
- Navigate to the server directory:
cd server
- Install dependencies:
npm install
- Create a
.env
file in the server directory and add the necessary configurations. For example:PORT=5000 MONGO_URI=mongodb://localhost:27017/car-rental JWT_SECRET=your_jwt_secret
- Start the server:
npm start
- User Registration: Create an account to start renting cars.
- Browse Cars: View the list of available cars and their details.
- Book a Car: Select a car, choose your rental dates, and confirm your booking.
- Admin Panel: If you are an admin, log in to manage cars and bookings.
This project is licensed under the MIT License. See the LICENSE file for details.