/Uber-Web3

This GitHub repository provides a complete solution for creating an Uber clone web application that integrates with Web3.0. Users can log in using MetaMask and make payments using Ethereum, ensuring a secure and decentralized experience.

Primary LanguageJavaScript

Uber-Web3

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.

Tech Stack Used -

Getting Started

Follow these steps to get Uber-Web3 up and running on your local machine:

  1. Clone this repository:
git clone https://github.com/Dev7989/Uber-Web3.git
  1. Change into the project directory:
cd Uber-Web3
  1. 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

  1. Install the dependencies:
npm install
  1. Start the sanity server:
npm run dev
  1. Open your web browser and navigate to http://localhost:5173 to access the Uber-Web3 application.