Meritroot

Overview
Meritroot is a specialized EdTech platform tailored for competitive exam aspirants, specifically targeting JEE, NEET, and standard academic students. It serves as a centralized hub for student registration, seamless onboarding, and course enrollment. A standout feature of the platform is its dynamic, theme-based architecture that intelligently adapts the user interface—offering distinct visual experiences depending on whether a student is preparing for JEE, NEET, or general academics.
Key Features
- ✦Dynamic Theme-Based UI: Automatically switches the platform's entire visual theme and layout based on the user's selected educational track (JEE, NEET, or Academic) using a centralized Context provider.
- ✦Secure OTP & Email Verification: Streamlined user onboarding utilizing secure, email-based OTP verification (powered by Nodemailer) to ensure genuine registrations.
- ✦Integrated HDFC Payment Gateway: End-to-end payment processing for course enrollments, utilizing HDFC SmartGateway with secure, server-side signature verification.
- ✦Interactive Dashboards & Analytics: Data-rich user interfaces incorporating Chart.js to help students visualize their progress and academic metrics.
- ✦Role-Based Access Control: Secure backend architecture handling distinct data models and permissions for student details and enrollments.
Technologies Used
Project Links
Challenges & Solutions
Secure HDFC Payment Processing & Webhook Verification
Integrating the HDFC SmartGateway required strict security measures to ensure that payment payloads couldn't be tampered with on the client side, and that the database was only updated upon legitimate transaction successes.
Secure Server-Side Verification
Developed a robust server-side payment controller that signs the payload using a secure RESPONSE_KEY prior to communicating with HDFC. Implemented a dedicated webhook callback endpoint that strictly verifies the hash/signature of the incoming response from the HDFC server before updating MongoDB.
Dynamic Theme Switching Without State Bloat
The platform required completely distinct visual themes for JEE, NEET, and Academic users. Managing this theme state across a complex component tree using heavy external libraries (like Redux) could cause re-render bottlenecks or a "flash of unstyled content" during navigation.
Lightweight React Context
Opted against using Redux and instead implemented a highly efficient solution using React's built-in Context API. By injecting the theme variables at the root layout level, the application dynamically re-styles Tailwind classes without performance degradation.
Reliable OTP Delivery and Verification
Ensuring users received their sign-up OTPs promptly without the risk of spamming the email server or allowing brute-force attacks on the verification endpoints.
Nodemailer & Validation Middleware
Leveraged nodemailer on the backend to dispatch customized HTML email templates containing the OTP. Implemented a time-based expiration for the OTP stored in the database, alongside validation middleware to ensure the OTP couldn't be reused or brute-forced.