Skip to content
/ UBER Public

Full Stack Uber Project , with live tracking , dynamic UI , falana dimkana.

Notifications You must be signed in to change notification settings

nerdyabhi/UBER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 

Repository files navigation

Logo

Live Link 🚀 : https://uber.abhi.works

Functional Requirements.

  • Real-time ride tracking and mapping
  • Live driver-passenger matching
  • Dynamic pricing & fare estimation
  • Secure user authentication
  • Responsive cross-platform design

Architecture

image image

Quick Start

- Frontend

git clone https://github.com/nerdyabhi/uber.git
cd frontend
npm install
npm run dev

- Backend

cd backend
npm install
node server.js
cd ..

Environment Variables

Backend

PORT=xxx
MONGO_URL="Your MONGO connecting string"
JWT_SECRET = "JWT SECRET"
GOOGLE_MAP_API = "API"

Frontend

VITE_API_URL=your_backend_api_url
VITE_SOCKET_URL=your_socket_server_url

📡 API Endpoints

Authentication

POST /api/user/register    # Register new user
POST /api/user/login      # User login
POST /api/captain/register # Register new captain
POST /api/captain/login   # Captain login

Rides

POST /api/rides/create    # Create new ride
POST /api/rides/confirm   # Confirm ride
POST /api/rides/getFare   # Get fare estimate
POST /api/rides/startRide # Start ride with OTP

Maps

GET /api/maps/get-coordinates    # Get coordinates from address
GET /api/maps/get-Distance-time  # Get distance and time
GET /api/maps/autocomplete       # Get location suggestions

Don't Forget to '⭐' this

🚀 Socket Events Documentation

Socket Event Description Payload
join User/Captain connection `{ userId: string, userType: "user"
update-location-captain Update captain's location { userId: string, location: { ltd: number, lng: number } }
ride-request New ride request { rideId: string, pickup: string, destination: string }
ride-confirmed Ride confirmation { rideId: string, captainId: string }

About

Full Stack Uber Project , with live tracking , dynamic UI , falana dimkana.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages