Skip to content

Dunking3022/DigiRail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigRail - Web3 Decentralized Ticket Booking Application

DigRail is a decentralized application (DApp) that allows users to connect their wallets and purchase train tickets using blockchain technology. Built with Solidity, Hardhat, Hedera, Chakra UI, React, and Express, DigRail leverages the power of Web3 and blockchain for secure and transparent ticket booking.

Features

  • Wallet Integration: Connect your Ethereum or Hedera wallet to DigRail for seamless ticket purchase.
  • Secure Transactions: Utilize blockchain technology to ensure secure and transparent ticket booking.
  • Efficient Ticket Booking: Buy train tickets using your cryptocurrency wallets.
  • User-Friendly UI: Chakra UI and React ensure a sleek and user-friendly interface for a smooth experience.

Prerequisites

Before getting started with DigRail, you need to have the following software and accounts set up:

  • Node.js and npm
  • Ethereum or Hedera wallet (e.g., MetaMask, Hedera Wallet)
  • Hardhat
  • React
  • Express
  • Solidity Compiler

Installation

  1. Clone the DigRail repository to your local machine:
git clone https://github.com/your-username/DigRail.git
cd DigRail
  1. Install project dependencies:
npm install
  1. Set up your environment variables, such as your Hedera and Ethereum wallet addresses and private keys.

  2. Compile your Solidity smart contracts using Hardhat:

npx hardhat compile
  1. Start the server:
npm start
  1. Start the React frontend:
cd client
npm start

Your DigRail application should now be up and running.

Usage

  1. Visit the DigRail website at http://localhost:3000.

  2. Connect your Ethereum or Hedera wallet using the provided button on the UI.

  3. Browse available train tickets and select the desired journey.

  4. Complete the payment using your connected wallet.

  5. The ticket will be stored on the blockchain, and you can access it from your wallet or the DApp.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • Thank you to the open-source community and HTM4 team for their contributions to the technologies used in this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors