HACKATHON
BLOCKCHAIN

My Experience at Hawk Hacks 2024: Building a DApp for the First Time with NEAR Protocol

By

Gurkirat Singh

Hawk hacks selfiee

Last weekend, I attended Hawk Hacks 2024, my second hackathon in just two weeks. I teamed up with two amazing people, and together we built Workify.

You can check out our project on GitHub and Taikai (Devpost).

The idea was to develop a blockchain-based app for outsourcing work. Our main focus areas were:

  • Outsourcing small tasks to a large number of people.
  • Enabling micro-payments, which are not feasible with traditional methods like Stripe, where the service fee is higher than the actual payment.
  • Allowing people to complete tasks and receive immediate payouts.

Our inspiration came from a video by Harkirat, with whom I collaborated to build the app. Additionally, with the fantastic sponsorship from NEAR Protocol, it was an obvious choice to use their technology. I met some wonderful people from NEAR, especially Min, who guided us throughout our journey. NEAR had already attempted a similar project, NEAR Tasks, described as:

NEAR Tasks is an exciting new platform powered by NEAR's Blockchain Operating System (BOS) that allows anyone to earn $NEAR just by completing simple tasks. Designed for creatives, remote workers, and anyone interested in participating in the gig economy, NEAR Tasks open up the crypto economy to everyone, making it easy to start earning crypto anytime, anywhere.

The NEAR team mentioned that NEAR Tasks was still in progress and encouraged us to pursue our idea. We aimed to build a niche application specifically designed for data labeling or selecting images that described a person's task.

Our Tech Stack

For our project, we chose the following tech stack:

  • Frontend: Next.js, Tailwind CSS
  • Backend: Node.js, Express, S3 (for storing images), Prisma & PostgreSQL (for storing user and application data)

Challenges We Faced

We encountered several challenges along the way:

  • Connecting to the database.
  • Learning about NEAR.
  • Uploading images to S3 using a pre-signed URL.
  • Structuring the backend APIs.

After two sleepless nights, subsisting mostly on pizza, playing games, hanging out, and having a lot of laughs, we finally completed our frontend and backend. However, there was a significant loophole: our full-stack logic worked fine, but we didn't establish a connection to the blockchain, which was the core of our project. Despite going through various NEAR and Mintbase Wallet documentation, we couldn't complete the smart contract and transaction functionalities.

Conclusion

Although we didn't fully achieve our goal, I'm proud of what we accomplished. The judges were impressed and asked many questions, which I enjoyed. We had planned to deploy our frontend on NEAR’s BOS, as Min had explained, using Jutsu to write a full-stack application fully on-chain. NEAR’s new BOS aims to build full-stack applications that are entirely on-chain.

A big thanks to the organizers and sponsors of the Hawk Hacks hackathon for making it a memorable event filled with exciting prizes!

Resources