DEV Community

Ishan Jain
Ishan Jain

Posted on

MongoDB Atlas Hackathon 2022 on DEV

What I built

I built an LotteryGame API, it is typically used for selecting winners as per there contribution to the community to award them with special NFTs

Category Submission:

The category of my submission is Choose Your Own Adventure, as i like to go freestyle with my work, not being bounded my anything

App Link

https://web-production-22ee.up.railway.app/

Description

Waffle is a API combination which powers few websites and a discord bots it is connected to, it takes in information from its servers and maps individuals work, awards them and later also selects them for lucky draw with a weighted average like method as in NBA drafts

Link to Source Code

https://github.com/ishanjain1502/The-Odd-Waffles

Permissive License

ISC

Background

The rise in NFT marketplace and evolution of discord servers around it, and the very nature of all this tech prioritizing people on the basis of their contribution gave me this idea

How I built it

I used MongoDB Atlas to create my own online database, where I can store all of my data
I have an authentication process which onboards users, and save there details on my DB, then later as per there contribution on there servers, they are given points, these points help them in participating in drops, here this list of participants selected for drop are on a different collection, from this collection we randomly select lucky winners with the help of weighted selection and get our luck winners

These lucky winners are then marked as won in the DB so that later they cant participate in next 3 drops, so as to allow other people to win too

Top comments (0)