๐Ÿš€ CheckinWithXYZ: Script Mayhem, Coffee, and Tiny Triumphs! ๐Ÿ˜…

Words
507
Reading
3 min
1y
Listen to this post
~3 min

Hey Hive Fam! ๐Ÿ˜„

Just when you thought things were smooth, my backend journey for CheckinWithXYZ took a pitstop at Quirksville. Hereโ€™s a fun rundown of whatโ€™s been cooking!


๐Ÿ•ต๏ธโ€โ™‚๏ธ The Case of the Missing Data Points

After sharing updates with starkerz@starkerz, he threw in some next-level feedback. One gem? Show onboarding reports by communities!
Me: ๐Ÿ˜ณ
Problem: We werenโ€™t storing all the juicy data in the DBโ€”just username, permlink, onboarder, and approval-status.
Link for nerds: See existing reports here

Good news: Already hacked together a script to fill in "date of joining". Needs more spice for deeper data! ๐ŸŒถ๏ธ


๐Ÿค– Script Shenanigans: Now With Extra Data

So I updated my Node.js script (with necessary caffeine โ˜•):

  1. Fetch transfer history for threespeakselfie
  2. Chuck out outgoing transfers
  3. Zero in on records with memos ๐Ÿงพ
  4. Smart regex filters ๐Ÿ˜Ž
  5. Map it all: username, permlink, date
  6. Loop over everything like a coding ninja

add missing data points using script

๐Ÿ† Now we pull post detailsโ€”hello, community IDs, names, countries, intro-text, selfies... if it's in the post, we snagged it!


๐Ÿ› ๏ธ Run Script. Sweat. Repeat.

Ran the shiny script. Did it work? Eh... after a couple of panic-induced Ctrl+Cโ€™s and head scratches, YES!
All data imported. Boom.


๐Ÿ—ƒ๏ธ Data Digs: The โ€œAm I Done Yet?โ€ Saga

Script munches through 350-ish records. I go for chai. Come back, and...
Open MongoDB Compassโ€”the moment of truth.

we got all attributes

All attributes in place!
Me: YES!
Also me: Wait, donโ€™t jinx it yet! Need to deploy...


๐Ÿš€ Deploy Like a Boss (Or Hope You Are)

Ready for my favorite tradition:
โ€œIt works locally, so itโ€™ll totally break on prod.โ€
Press Deploy. Countdown: 3... 2... 1... ๐Ÿ’ฃ

Deployment going in 3 2 1 ๐Ÿš€

And... itโ€™s done!

And deployment done

But wait. Touched prod DB. Sweaty palms. The real anxiety begins: does the live app still live?


๐Ÿงช Testing in The Wild: Will It Blend?

Drumroll...
Checked production app, API calls, data sent... All GREEN!

Successful testing

Senior devs: โ€œMeh.โ€
Me (the accidental backend dev): HUGE WIN! ๐Ÿฅฒ
Small victories, big celebrations!


๐Ÿ” Wait, Thereโ€™s Moreโ€”Frontend Next!

Yay? Not so fast!
Backend might be sorted, but now comes frontendโ€”report visualizations! Stay tuned for more panic, code, and fun screenshots soon. ๐ŸŽ‰


โšก๏ธ Thatโ€™s All Folks! โšก๏ธ

Thank YOU for cheering me on, Hive community!
Drop your feedback, jokes, memes or virtual coffees below! โ˜•
Onwards! ๐Ÿš€
Hive โ™ฆ๏ธ to Moon ๐ŸŒ™


๐Ÿ“ Final Note


๐Ÿš€ My Contributions to โ™ฆ๏ธ Hive Ecosystem

ContributionToHiveEcosystem
Hive Witness NodeHive API Node (in progress)3Speak Video Encoder Node Operator (highest number of nodes)3Speak Mobile App Developer
3Speak Podcast App Developer3Speak Shorts App Developer3Speak Support & Maintenance TeamDistriator Developer
CheckinWithXYZHive InboxHiFindHive Donate App
Contributed to HiveAuth Mobile AppEcency โ†” 3Speak IntegrationEcency โ†” InLeo IntegrationEcency โ†” Actifit Integration
Hive Stats AppVote for Witness AppHiveFlutterKitNew 3Speak App

๐Ÿ™Œ Support Back

โค๏ธ Appreciate my work? Consider supporting threespeak@threespeak & sagarkothari88@sagarkothari88! โค๏ธ

VoteForWitness
sagarkothari88sagarkothari88@sagarkothari88
threespeakthreespeak@threespeak

๐Ÿš€ CheckinWithXYZ: Script Mayhem, Coffee, and Tiny Triumphs! ๐Ÿ˜… | Ecency