A basic car rental system built with:
- Frontend: React + Tailwind CSS
- Backend: Node.js/Express
- Database: MongoDB
- User authentication (login/registration)
- Car listing with filters
- Car details page
- Booking system
- Responsive design with Tailwind CSS
git clone https://github.com/roshanx0/car-rental.git
cd car-rental
cd backend
npm install
Create .env
file:
touch .env
Add these variables (replace with your own values):
MONGO_URI=mongodb+srv://<username>:<password>@your-cluster.mongodb.net/car-rental
PORT=5000
JWT_SECRET=your_random_secret_key_here
Start server:
npm start
cd frontend/rentacar
npm install
npm run dev
(Add some screenshots later)
backend/ # API code
frontend/ # React app
└─ rentacar/ # Main frontend