Uber-Web3 is an open-source decentralized application (dApp) built on the Ethereum blockchain. It aims to provide a decentralized ride-hailing service similar to Uber, but with the added benefits of transparency, security, and peer-to-peer transactions facilitated by smart contracts.
This repository contains the smart contracts, web interface, and supporting files for Uber-Web3. With this dApp, users can request rides, drivers can accept ride requests, and payments are handled through the Ethereum blockchain using smart contracts.
Follow these steps to get Uber-Web3 up and running on your local machine:
- Clone this repository:
git clone https://github.com/Dev7989/Uber-Web3.git
- Change into the project directory:
cd Uber-Web3
- Create a
.env
file in the project root directory and add the following details:
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=pk
NEXT_PUBLIC_UBER_ADDRESS=0x
MAPBOX_DIRECTIONS_API_URL=https://api.mapbox.com/directions/v5/mapbox/driving-traffic
MAPBOX_PLACES_API_URL=https://api.mapbox.com/geocoding/v5/mapbox.places
SANITY_TOKEN=skcMt0LxdNjB
SANITY_PROJECT_ID=027
- Install the dependencies:
npm install
- Start the sanity server:
npm run dev
- Open your web browser and navigate to
http://localhost:5173
to access the Uber-Web3 application.