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.
- 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.
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
- Clone the DigRail repository to your local machine:
git clone https://github.com/your-username/DigRail.git
cd DigRail- Install project dependencies:
npm install-
Set up your environment variables, such as your Hedera and Ethereum wallet addresses and private keys.
-
Compile your Solidity smart contracts using Hardhat:
npx hardhat compile- Start the server:
npm start- Start the React frontend:
cd client
npm startYour DigRail application should now be up and running.
-
Visit the DigRail website at http://localhost:3000.
-
Connect your Ethereum or Hedera wallet using the provided button on the UI.
-
Browse available train tickets and select the desired journey.
-
Complete the payment using your connected wallet.
-
The ticket will be stored on the blockchain, and you can access it from your wallet or the DApp.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thank you to the open-source community and HTM4 team for their contributions to the technologies used in this project.