Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.99 KB

README.md

File metadata and controls

59 lines (36 loc) · 1.99 KB

Car Rental Dapp

Car Rental Dapp is a decentralized application (Dapp) built on Ethereum using Solidity and React. It allows users to book cars and make payments using cryptocurrency.

site

Car Rental Dapp provides an easy and decentralized way for users to book cars for rental. Users can select a car type, pick-up and drop-off locations, and choose the rental duration. Payments are made using cryptocurrency via the Ethereum blockchain.

  • User-friendly interface for booking cars.
  • Integration with the Ethereum blockchain for secure and transparent payments.
  • Selection of car type, pick-up, and drop-off locations.
  • Validation and error handling for booking and payment processes.
  • Smart contract to manage car rentals, payments, and user balances.

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed.
  • MetaMask extension installed in your browser.
  • Ethereum wallet with testnet Ether for testing (e.g., Ropsten or Rinkeby).

To set up the development environment and run the Minted AI DApp locally, follow these steps:

  1. Clone the GitHub repository:

    git clone https://github.com/kikomicevski/Minted-AI-DApp.git
    
  2. Install the dependencies:

    npm install
    
  3. Set up environment variables:

    Create a .env file in the project root directory.

    Add your own environment variables which should look like this:

    
    API_URL = "https://eth-sepolia.g.alchemy.com/v2/dcxTgaFqasd1w8dsf56WnfKOMy-hghhgVvo"
    PRIVATE_KEY = "a84ffbb7610822fasd15w51f89sdf3cv2f7d2ecbcf8fd344f0d06c27103346c46"
    
    
    //Make sure to replace them with the actual values.
    
  4. Deploy the Smart Contract:

    npx hardhat run scripts/deploy.js --network sepolia
    
  5. Start the development server:

    npm run start
    

The DApp will be accessible at http://localhost:3000.