Inspiration

As we are experiencing a global acceptatinon of web3 in every sectors. We found that there is no decentralised travel ticket booking system. Thus we decided to take it upon ourselves to create a D-App for public transportation. It would leverage the users to enjoy the convenience and security of Web3 while mainting their privacy and anonymity.

What it does

DigiRail is an easy to use ticket booking platform leveraging the power of web3 to book train tickets, maintaing anonymity and security for users . In simple words, it is a ticket booking system built upon the Hedera Testnet and is also implementing a modern and intuitive UI using ChakraUI components.

How we built it

We first decided to create the basic smart contract that our project will rely on as it is the base of every web3 dapp. So we noted what the app needed to be able to do fundamentally such as keep track of the bookings, allow people to buy tickets in different coaches like Sleeper, AC, etc. We also implemented a basic currency system where people could use Hedera's HBAR to

Challenges we ran into

One of the main challenges that we faced initially was finalizing our smart contract as once it is deployed, redeploying it causes the contract address to be changed and it needs to be reverified so we decided to take pointers and once our smart contract met all the basic needs, we deployed it to a local testnet. The next challenge we faced was integrating hedera as we are new to this technology. It is a emerging blockchain where people can deploy their smart contracts. We looked at the documentation and searched for tutorials which were'nt a lot but we kept trying and managed to successfully deploy our smart contract to the blockchain. Then we also faced the issue of integrating Hedera with React as this proved to be a challenge and the examples yet again were a few but we managed to learn from them and created a backend using express that could interact with the blockchain and access the blockchain functions.

Accomplishments that we're proud of

We're really proud of how we managed to integrate hedera into our project. We really felt enthusiastic and full of energy when our first smart contract went live and that kept us going until the very end. This was our first offline Hackathons and we're really happy that it was HackTheMountain as we were stunned at the venue and we are really grateful that we got to be a part of it. We are definetely already getting ready for HTM5, we'll be sure to be back with twice the energy and more interesting ideas.

What we learned

As this was our first offline hackathon, we met a lot of people and made friends that we couldn't have done online so we're thankful to HTM team for inviting us offline. We also are thankful to all the mentors for being so thankful and fun to work with. We had to think whether to build our project or interact with our mentors cause they were so good! We also learned that hackathon is not just about building projects (or getting swags :P) but it's about networking and meeting like minded people to share your ideas with. I helped many people with their project and they helped me so I think this was a great experience and we really appreciate it!

What's next for DigiRail

As we had some issues with directly implementing Hedera directly with our react app so we had to get through by building a node project and backend but we are looking forward to building Smart Contract Function calls to the contract deployed on hedera test network directly into our react app. We also currently only have railway booking as a part of our short and minimal prototype to demonstrate our project but we're looking further to actually building into a full stack web3 dapp with multiple mediums of transportation to book from. We also are thinking of implementing more techonologies into our project like ARWeave for Permanent Data Solutions and Security and we also will definitely give Godspeed a try for our backend instead of express which we had to use due to time constraints. We are really looking forward to improving our app and making it into an actual working project that people can benifit from.

Built With

Share this project:

Updates