A full-stack cab booking application built with React.js, Node.js, Express.js, and MongoDB.
cab-booking-system/
├── frontend/ # React.js application
├── backend/ # Node.js + Express.js server
└── README.md # Project documentation
- 🔐 Role-based Authentication (User/Driver)
- 📍 Dynamic location search with suggestions
- 🚗 Real-time ride tracking
- 💰 Fare estimation
- 📊 Driver earnings dashboard
- 🔄 Real-time status updates
- Frontend: React.js, Material-UI, Socket.io-client
- Backend: Node.js, Express.js, Socket.io
- Database: MongoDB
- Maps: OpenStreetMap API
- Real-time Updates: Socket.io
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Navigate to backend directory:
cd backend ```bash cd backend
- Install dependencies:
npm install
- Create .env file with required environment variables
- Start the server:
npm run dev
- Navigate to frontend directory:
cd frontend - Install dependencies:
npm install
- Create .env file with required environment variables
- Start the development server:
npm start
PORT=5000
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
REACT_APP_API_URL=https://cab-booking-system-csfj.onrender.com
REACT_APP_SOCKET_URL=https://cab-booking-system-csfj.onrender.com
76d589461927c7651bd373e45d1407eeed212256