π GoRide β Full-Stack Uber Clone
GoRide is a real-time cab booking platform inspired by Uber, built using the MERN stack. It enables seamless ride booking, driver matching, and live trip tracking with real-time communication.
π Key Highlights
π Secure JWT Authentication for riders & drivers
π Book rides and match with nearby drivers
πΊοΈ Live location tracking using Google Maps API
π Real-time updates via Socket.io
πΈ Dynamic fare calculation
π§Ύ Ride history & trip management
π± Fully responsive UI
π οΈ Tech Stack πΉ Frontend
React.js (Hooks + Context API)
Tailwind CSS
Google Maps API
Axios
πΉ Backend
Node.js + Express.js
MongoDB + Mongoose
Socket.io
JWT Authentication
REST APIs
π Project Structure πΉ Backend (/backend) backend/ βββ controllers/ β Business logic βββ models/ β Mongoose schemas βββ db/ β DB connection βββ middleware/ β Auth & error handling βββ routes/ β API routes βββ services/ β Fare & notification logic βββ socket/ β Real-time events βββ app.js β Express config βββ server.js β Entry point
πΉ Frontend (/frontend) frontend/ βββ public/ βββ src/ β βββ pages/ β Screens (Home, Login, Dashboard) β βββ components/ β Reusable UI β βββ context/ β Global state β βββ assets/ β Images & icons β βββ App.js β Routing
π Getting Started πΉ Prerequisites
Node.js (v16+)
MongoDB (Local/Atlas)
Google Maps API Key
πΉ Installation 1οΈβ£ Clone Repo git clone https://github.com/sakshi04-ui/GoRide.git cd GoRide
2οΈβ£ Backend Setup cd backend npm install
Create .env file in backend/
PORT=5000 MONGO_URI=your_mongodb_uri JWT_SECRET=your_secret_key GOOGLE_MAPS_API_KEY=your_api_key
Start backend:
npm run dev
3οΈβ£ Frontend Setup cd ../frontend npm install npm start
π Running App
Frontend β http://localhost:3000
Backend β http://localhost:5000
π Environment Variables PORT=5000 MONGO_URI=mongodb+srv://your-cluster-url JWT_SECRET=supersecretkey GOOGLE_MAPS_API_KEY=your-api-key
π§ Future Improvements
π³ Payment Integration (Stripe / Razorpay)
π§βπΌ Admin Dashboard
π Multi-language Support
π Push Notifications (Firebase)
π€ Contributing
Contributions are welcome! Feel free to fork the repo and create a PR.
π License
This project is licensed under the MIT License.