kaylinkhanal / instant

0 stars 0 forks source link

Instant

INSTALLATION

frontend

    cd client
    npm i
    npm run dev

FEATURES:

PHASE 1-> to send a passenger from pickup to destination

PHASE 2: to learn new technologies

  1. Chat
  2. Rider Rating
  3. OAuth
  4. Esewa

PRICE CALCULATION LOGIC: let price =0 let distance= 3.2 let pricePerUnitKm={ bike: 100, car:200 } const rideType = 'car' price = pricePerUnitKm[rideType]* distance

function isMaxTime(time){ if(time > 18 || time<6){ price = price+100 } } isMaxTime(10) price

PRICE BARGAIN: BETWEEN +- 2%

BASIC RIDE KEYS:

{ price: 500, pickUp: 'Raniban, Kathmandu', pickUpCoords: {lon:32.3, lat:32.2}, destinationUpCoords: {lon:32.4, lat:32.5}, distance: 32, destination: 'Tinkune, Kathmandu', status: ['pickedUp', 'cancelled','pending', 'completed'], vehicleType: 1, riderId: 3212312, passenderId: 12312, }