/mongo-realm-follower-stats

looks good but I could not get it to work. New version is on dev.to and GitHub by the author. mongo realm-web follower stats Twitter GitHub YouTube Dev.to

Primary LanguageJavaScriptApache License 2.0Apache-2.0

mongo-realm-follower-stats

🚀

  • MongoDB Realm functions for backend
  • MongoDB Realm Triggers to keep track of follower count on schedule and send email on Monday
  • Auth0 for login
  • Taiwind CSS for styling
  • Next.js as frontend framework 🚀

https://github.com/coding-to-music/mongo-realm-follower-stats

https://mongo-realm-follower-stats.vercel.app

From / By https://github.com/geekysrm

https://github.com/geekysrm/followstats - deleted, the new one is https://github.com/geekysrm/follow-stats

https://dev.to/geekysrm/followstats-keep-track-of-your-followers-and-subscribers-and-get-weekly-emails-2f03

2022 article:

https://dev.to/geekysrm/followstats-keep-track-of-your-followers-and-subscribers-and-get-weekly-emails-4g7o

https://followstats.vercel.app/

Environment variables:

AUTH0_SECRET=<Auth0 secret>
AUTH0_BASE_URL='http://localhost:3000'
AUTH0_ISSUER_BASE_URL=<Auth0 domain>
AUTH0_CLIENT_ID=<Auth0 client ID>
AUTH0_CLIENT_SECRET=<Auth0 client secret>

REALM_APP_ID=""

GitHub

git init
git add .
git remote remove origin
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:coding-to-music/mongo-realm-follower-stats.git
git push -u origin main

Asked question on dev.to to the author

https://dev.to/geekysrm/followstats-keep-track-of-your-followers-and-subscribers-and-get-weekly-emails-4g7o

Does the repo work "as-is" or does the init code need to be written? https://github.com/geekysrm/follow-stats/blob/main/utils/init.js

init.js says:

// Initialize mongoDB and connect to correct Realm function

FollowStats

Overview of My Submission

As part of the MongoDB Atlas + Dev hackathon, I am glad to present FollowStats. FollowStats enables you to be more intentional about building an audience and helps you to track your followers, subscribers from various platforms periodically. It keeps a daily track of your followers and subscribers count. You can view your growth/ decline of your followers and subscribers in an organized dashboard. It also sends you a weekly overview of your audience to your email every Monday morning at 09:00.

Live Application

Submission Category: Action Star

How to run the application locally

AUTH0_SECRET=<Auth0 secret>
AUTH0_BASE_URL='http://localhost:3000'
AUTH0_ISSUER_BASE_URL=<Auth0 domain>
AUTH0_CLIENT_ID=<Auth0 client ID>
AUTH0_CLIENT_SECRET=<Auth0 client secret>

Additional Resources / Info

Screenshots and Video

User Dashboard User Dashboard

Settings Page

Settings Page

Weekly Email Report

Image description

I have prepared a demo video which can be viewed here: Video Link

Technologies used

  • MongoDB Realm functions for backend
  • MongoDB Realm Triggers to keep track of follower count on schedule and send email on Monday
  • Auth0 for login
  • Taiwind CSS for styling
  • Next.js as frontend framework

My experience

I had previously used MongoDB but was unaware of the cool functionalities like Realm functions, triggers etc. I was really fascinated by how easy it is to build your backend using MongoDB Realm functions. We can easily import npm packages and use those too. I also used triggers for the first time to fetch followers' count everyday and send email report every Monday.

Challenges faced

The major challenge was to figure out the way to fetch followers/ subscribers data from various platforms. I had to try many methods (like using official API, scraping etc.) before I arrived at a method that works.

What's next for FollowStats?

  • Add more platforms like Instagram, LinkedIn and newsletter platforms like Mailchimp, Convertkit, Buttondown etc.
  • Add charts and graphs to visualize followers' growth.

Try it Out

Live Application

View Source Code

Please try this out and give your valuable feedback in the comments below or on Twitter.