Cabchain

Decentralized implementation of Cab Service which involves peer-to-peer networking and blockchain.

Technology Stack

  • Node JS
  • React Native
  • Mongo DB
  • Android
  • Blockchain Network

Platforms Used

  • Heroku Cloud Service

    • Admin Portal : https://cabchain.herokuapp.com
    • REST Server : https://cabchain.herokuapp.com
    • Authentication Server (Aadhaar Vahaan Replica) : https://serverauth.herokuapp.com

  • MLAB

    • Mongo DB : Cabchain
    • Mongo DB : AuthServer

  • Google Maps and Direction APIs
  • Nexmo : Messaging APIs
  • NodeMailer : Email APIs
  • Hyperledger Composer REST Server
  • Ngrok : For tunneling to Composer Server (https://31032026.ngrok.io)

Architecture

architecture

Working of Apps : User and Driver app

Customer App Driver App

APIs available

  • serverauth.herokuapp.com
    • /aadhaar/:number/:name/:gender/:dob/:address
    • /vahaan/:number/:chassis/:enginenumber
  • cabchain.herokuapp.com Link to Code
    • /register
    • /login
    • /fareupdate
    • /contact
    • /details
    • /register
    • /login
    • /logout
    • /userredirection-pickup/:ridetrackingno
    • /userredirection-finish/:ridetrackingno
    • /updatedriverratings/:driverno/:overallrating/:behaviour/:drivingskills/:timelypickupdrop/:conditionofvehicle
    • /updateuserratings/:userno/:overallrating/:behaviour/:ridetrackingno
    • /matchotp/:ridetrackingno/:otp
    • /suggestionstousers/:ridetrackingno/:sortby/:ridetype
    • /ridereject/:ridetrackingno/:driverno
    • /rideaccept/:ridetrackingno/:driverno
    • /driverquote/:driver/:ridetrackingno/:quote
    • /newrequests-driversuggestion/:phone
    • /riderequestplaced/:userid/:ridetrackingno/:addressSP/:addressEP/:gpsSP/:gpsEP/:fare/:distance/:otp
    • /getdriverlocations
    • /promotionalsms/:name/:phone/:receiverphone
    • /previousrides/:mobile
    • /driver-location/:mobile
    • /driver-previousrides/:mobile
    • /getUsername/:phone
    • /ratecard/:city
    • /userOTPLogin/:phone/:otp
    • /useradd/:phone/:email/:name
    • /userlogin/:phone
    • /userratings/:phone
    • /driverratings/:phone
    • /driverlogin/:phone
    • /fare-computation-government-rates/:src/:dest
    • /olafare/:src/:dest/:type
    • /otpgeneration
    • /support/:email/:name/:query
    • /rideotp/:requestID
    • /sendinvoice/:requestID
    • /smsinvoice/:requestID
  • ngrok.io
    • /api/driver/driverid
    • /api/Ride
    • /api/user/
Share this project:

Updates