DEV Community

Cover image for How I Built AlumIQ A Production Ready Mern Stack Generative Ai Alumni Intelligence Platform
Rishabhh Pandey
Rishabhh Pandey

Posted on

How I Built AlumIQ A Production Ready Mern Stack Generative Ai Alumni Intelligence Platform

AlumIQ Dashboard User Management and Alumni Profiles Modules

AlumIQ Job Board Events and Directory Hub Modules

AlumIQ Mentorship Hub Contribution Impact and Verification Hub Modules

AlumIQ Chapters Management Module

AlumIQ Powered by Groq AI Neural Intelligence

AlumIQ Ready to Explore Call to Action

Existing Alumni Management Tools Are Either Too Basic Just A Static Directory Or Too Complex Enterprise Erps Most Universities And Alumni Networks Still Rely On Spreadsheets To Manage Chapters Track Job Referrals And Verify Credentials There Is No Middle Ground

So I Built AlumIQ A Full Stack Alumni Intelligence Platform That Combines Real Time Community Engagement With Generative Ai And Neural Matching

Here Is The Complete Breakdown Of How It Works

━━━━━━━━━━━━━━━━━━

🛠️ The Tech Stack

⚛️ Frontend - React Js Vite Tailwind Css V4

🟢 Backend - Node Js Express Js

🍃 Database - Mongo Db Mongoose

⚡ Real Time - Socket Io

🤖 Ai Layer - Groq Llm Openai Gpt Oss 120b

🧠 Neural Matching - Tensor Flow Js Universal Sentence Encoder

☁️ Image Upload - Cloudinary Plus Multer

📧 Email And Otp - Nodemailer

🔴 Caching And Deduplication - Redis Ioredis

🔐 Authentication - Jwt Bcryptjs Otp

━━━━━━━━━━━━━━━━━━

🎯 The 10 Core Modules

1️⃣ Dashboard

Real Time Kpi Cards Showing Total Alumni Active Jobs Upcoming Events Chapters And Verified Alumni

All Data Is Fetched Live Using Mongo Db Aggregation Pipelines

2️⃣ Authentication

Register Login Email Otp Verification 2fa Password Reset

Jwt With Access Plus Refresh Tokens

A Secure Session Aware Axios Interceptor Auto Logs Out Users If The Token Expires

3️⃣ Alumni Management

Full Crud With Profile Details Skills And Auto Filled Geographic Coordinates

Admins Can Compare Up To 4 Alumni Side By Side Schedule Re Verifications And Perform Bulk Actions

4️⃣ Chapter Hub

Regional And Industry Based Chapters With Join Requests Member Approvals And Co Admin Assignment

Features Discussion Boards Cloudinary Gallery Uploads And A Leaflet Powered Global Heatmap Of Chapters

5️⃣ Job Board

Full Crud For Job Postings With A Redis Based Deduplication System To Track Unique Views

Prevents Users From Artificially Inflating Views

Applicants Can Shortlist And Save Jobs

6️⃣ Event Management

Create Events Physical Or Virtual Manage Rsvps With Waitlists And Check In Attendees

The Rsvp Flow Is Powered By Socket Io When A User Rsvps The Attendee Count Updates Instantly For Everyone On The Page

7️⃣ Mentorship Hub

Manage Mentor And Mentee Sessions With Feedback Ratings Action Items And Goal Tracking

8️⃣ Contribution Tracking

Track Alumni Giving Back Mentorship Hiring Donation Etc

Includes Visual Breakdowns By Type And An Ai Generated Economic Impact Narrative

9️⃣ Verification Hub

Verify Alumni Credentials Education Employment Identity Using An Immutable Audit Log

If Records Do Not Match The System Flags Them As Under Review Rather Than Auto Blocking Allowing Admins To Manually Review And Add Rejection Reasons

🔟 Directory And Directory Hub

A Central Command Center With A Watchlist Pinning

Features A 24 Hour Timeline Scrubber For Real Time Activity Replay Sensitive Zones High Value Alumni Clusters And A 30 Day Forecast Strip

━━━━━━━━━━━━━━━━━━

🤖 The Generative Ai And Neural Layer

Every Module Has A Dedicated Ai Service Powered By Groq Llm But I Did Not Just Rely On Prompt Engineering I Combined It With Tensor Flow Universal Sentence Encoder 512 Dim Embeddings

Here Are The Ai Capabilities

🎓 Alumni Ai - Bio Writer Industry Suggester Skills Suggester Matchmaker Career Path Advisor

🏛️ Chapter Ai - Description Writer Event Idea Generator Growth Advisor Recap Writer

💼 Job Ai - Jd Writer Salary Advisor Matchmaker Market Trends Overlap Detection

📅 Event Ai - Description Writer Invite Writer Schedule Advisor

🤝 Mentorship Ai - Mentor Bio Matchmaker Agenda Writer Session Summary

🛡️ Verification Ai - Regulatory Explainer Rejection Narrator Batch Grade Justification

🌟 Contribution And Directory Ai - Network Explainer Industry Storyteller Sensitivity Advisor

🧠 The Hybrid Ai Approach Tensor Flow Plus Groq

For Matchmaking Alumni Jobs Mentors I First Use Tensor Flow To Calculate The Cosine Similarity Between Text Embeddings Finding The Top Mathematically Similar Profiles

Then I Pass Those Pre Filtered Candidates To Groq Llm To Explain Why They Match And Generate Outreach Strategies

━━━━━━━━━━━━━━━━━━

💡 Key Engineering Decisions

🛡️ Json Mode - Every Ai Prompt Forces The Llm To Return Valid Json This Prevents Parsing Errors And Broken Ui

🧹 Clean Value Helper - The Ai Sometimes Returns Placeholder Values Like N A Or A Hyphen This Helper Sanitizes Them Before They Reach The Frontend

🔄 Post Processing - After Every Ai Response Arrays Are Filtered To Remove Invalid Values Generation Plus Cleanup Is The Reliable Pattern

⚡ Redis For View Deduplication - In The Jobs Module I Used Redis With A 1 Hour Ttl To Prevent Fake View Inflation If Redis Goes Down The App Gracefully Degrades

📡 Room Based Socket Io - For Events I Did Not Broadcast Rsvp Updates To Everyone Clients Join Specific Rooms This Keeps Bandwidth Low

☁️ Stateless Image Uploads - Instead Of Saving Avatars To Local Disk I Used Multer Memory Storage And Streamed The Buffer Directly To Cloudinary

━━━━━━━━━━━━━━━━━━

🔐 Security Architecture

🔑 Jwt Authentication With Access And Refresh Tokens

📧 Email Otp Verification 6 Digits 1 Min Expiry Required Before Login

🔒 Optional 2fa Via Email Otp

🛡️ Password Reset Via Otp And Short Lived Jwt Purpose Password Reset

⏱️ Rate Limiting 500 Requests Per 15 Min Global 50 Requests Per 15 Min For Auth Endpoints

🚦 Helmet Js For Http Headers Cors With Credentials

🔐 Bcrypt Password Hashing 10 Salt Rounds

📝 Immutable Audit Logs For Verifications

━━━━━━━━━━━━━━━━━━

🎨 Ui Design Philosophy

✨ Glassmorphism On Every Card Using Bg Black 40 Backdrop Blur Md Border 2 Border White 10 Rounded 3xl

🟢 Emerald Gradient Theme Across All Pages From Black Via 001a0f To Black

🔠 Uppercase Bold Typography With Tracking

🔽 Custom Dropdowns And Modals Using React Portals And Get Bounding Client Rect To Prevent Clipping

📐 Corner Brackets On Every Card That Light Up On Hover

🎬 Staggered Animations For Table Rows And Lists

📱 Fully Responsive Design

━━━━━━━━━━━━━━━━━━

💡 Key Challenges And Learnings

🚧 Challenge 1 The Auth Flow Edge Case

When Building The Middleware I Had To Ensure That An Expired Or Malformed Jwt Did Not Just Crash The App But Returned Specific Error Codes The Axios Interceptor On The Frontend Listens For These Specific Codes To Handle The Redirect Cleanly

🚧 Challenge 2 Verification Data Integrity

When An Alumni Employer Record Did Not Match I Could Not Just Auto Block Them I Designed A System Where The State Moves To Under Review

I Built An Audit Log Array Into The Mongoose Schema That Records Every Action The Admin Who Did It And A Timestamp This Provides A Trust But Verify Transparency Trail

🚧 Challenge 3 Ai Matchmaking Reliability

Pure Llms Are Bad At Math They Cannot Reliably Find The Most Similar Profile

By Shifting The Mathematical Burden To Tensor Flow Embeddings And The Reasoning Burden To Groq I Achieved A Highly Accurate And Explainable Matchmaking System

🚧 Challenge 4 Multi Role Permission

Admin And User Roles Need Different Access Levels

This Was Solved With A Protect Middleware Checking Jwt Validity Plus A Custom Role Check Middleware Ensuring Only Admins Can Access Certain Endpoints

━━━━━━━━━━━━━━━━━━

🎯 What Comes Next

I Am Currently Working On Adding Voice Based Ai Commands To AlumIQ The Goal Is To Let Admins Speak Commands Like Generate A Mentorship Agenda For John And Sarah Focusing On System Design And Have The Ai Auto Fill The Forms

Other Planned Features Include

📱 Real Time Alumni Chat Using Socket Io

📲 Mobile App Using React Native

📊 Advanced Predictive Analytics For Alumni Donations

━━━━━━━━━━━━━━━━━━

📌 Final Thoughts

Building AlumIQ Taught Me That Production Ai Is Not Just About Calling An Llm Api It Is About Prompt Engineering Error Handling And Combining Different Ai Models Like Tensor Flow Plus Groq To Get The Best Of Both Worlds

The Biggest Lesson Was That Reliability Matters More Than Cleverness A Simple Json Mode Plus Cleanup Logic Beats An Elaborate Prompt That Sometimes Fails

The Second Lesson Was That Real Time Features Need Careful Architecture Broadcasting To All Clients Kills Performance Room Based Subscriptions Are The Way

━━━━━━━━━━━━━━━━━━

🔗 Interested In The Full Source Code Or Getting This Project For Your Portfolio

🌐 Check Out The Project Stack Website

🌐 https://www.theprojectstack.com/

Happy To Answer Any Questions About The Architecture Or Ai Integration Drop A Comment Below

Top comments (1)

Collapse
 
wbcomdesigns profile image
Wbcom Designs 💡 •

Chapters plus mentorship is the right core for alumni networks. In our experience the hard part isn't features, it's getting the first few hundred alumni to log in twice, and a local chapter lead posting regularly does more than any matching algorithm. Disclosure: we build community software at Wbcom (BuddyNext).