Coder Social home page Coder Social logo

fake-uber's Introduction

Fake-Uber: Peer to Peer RideShare

Current MVP

STATUS: CURRENTLY UPGRADING

As of now, its slightly broken. This project is in a low level MVP. The driver is the only one that can input a location and its only " e 4th street los angeles" and when its entered you have to hit backspace. The destination can't be inputed yet but it can be clicked anywhere and it will return a colored route.

Yet to be Done

The Driver has to be able to input their pickup location and destination to anywhere. Then copy that to the Rider. Connect the smart contract to allow blockchain transactions.

APIS

Chainlink - https://chain.link/developer-resources MapBox.io - https://docs.mapbox.com/

rider

-sees ongoing rides -chooses start and end location -can see the price and time of the driver -can request from the list of drivers to be part of the ride

driver

  • they get added to the list of drivers active -shows where their start location and end location is -shows where they are currently when starting the drive
  • display how many seats they have open in the the object
  • shows the amount per seat in the object

Do Today 12/27/2023

  • Finish pseudo code for the logic
  • Finsih riders and drivers wireframe- needs list of trips
  • know how will the contract be interacting with the way money is transfered
  • know how the smart contract will be stored and tracked
  • Make React shell for the riders

Steps

who is the driver and who is the rider? who is the owner of the contract do they each have own contract and the money gets transfered to contract

  • Make smart contract
  • Have Riders info
  • Have Drivers info
  • add new driver
  • add new rider

security issue and scam issue

  • when should the payment be sent.
  • if its when the the ride starts how would the ride start. the rider starts and and driver confirm that the are in the car -? at start of the trip the rider will send money to the contract when ride is completet the money will be sent to the driver?
  • or the money is sent when the driver brings the rider to the location or when the ride is ending

when riding

  • know when the rider is active(available to ride, not on a trip) -- this will the variable that depends if they can check out a ride

  • know when the driver is active(available to drive, not on a trip)

  • the rider and the driver will have their balance display

  • the rider can see the list of trips available with the info{name,start and end, time, seats available, price per seat,}

  • when the rider clicks on the trip, they get to see the information underneath and the map shows the start and end location

  • the rider can choose their pickup location and the and drop location

  • the added route will show on the map and calculate the best route to take with them

  • if the balance of the rider is less than the payment then they cant checkout ride

  • if the rider balance is greater than the seats payment then allow them to checkout that ride

  • if the rider can checkout then add the rider to the list of riders in the trip

  • the driver gets to see the added rider to the trip along with their seat amount and new route combined and get to choose to accept them to the ride or not

  • when the driver accepts the riders request the the rider gets added through their wallet address to the contract and check out of the rider is set to true and the driver checkout is set to true

  • i think the owner of the contract will be the one who deploys it which the run deploying it would be the driver

  • At the start of the trip the rider will confirm they are with the driver and the driver will confirm they are with the rider and the money will be trasnfered from the rider to the contract and the money will be sent to the owner.

  • the duration of trip of will also start then and record the start of a trip for rider and driver, the riders check out is now true

  • when the trip starting, the active is changed to true and they cant checkout another ride

  • when driving the both locations from driver and rider will move along map on both riders and drivers side

  • when the rider gets to the drop locaiton of the rider both rider and driver confirm its the location and record the end of the trip for rider and driver

  • when ride check in which is the same as the trip ending, the active is changed to false and they can checkout another ride

Transfering to driver and rider

-the information that is needed is -the driver and the riders location at all times from -the history of the driver and the rider including feedback time

the wallet interacts with the contracts connect contract the the frontend

what should the contract do and what should javascript or other api do where should the location go instead

use useEffect and useState and useContext making tabs with active and calenders how is useState being usedi multi comp i thought it was only for the app is it transferable? what is this.state how to add to state and to context using two states in same comp review through all the labs last week using usenavigate to go to diff comp

fake-uber's People

Contributors

juzorey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.