Code Monkey home page Code Monkey logo

kikomicevski / car-rental-dapp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.04 MB

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. Technologies used : Solidity, Hardhat, React, NodeJS, Bootstrap,Ethers.js,MetaMask

Home Page: https://car-rental-dapp.netlify.app

HTML 2.22% JavaScript 62.30% CSS 32.08% Solidity 3.40%
blockchain carrentals dapp decentralized-applications react rentacar solidity

car-rental-dapp's Introduction

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.

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.