TutorLink
LiveFull-stack tutor–student marketplace with JWT auth via HTTP-only cookies, Stripe Payment Intents, real-time Socket.IO chat, and rating recalculations.
Live Application: tutor-link-2yxy.vercel.app
Source Repository: github.com/PROFESSOR-ADNAN/TutorLink
The problem
Connecting students with qualified private tutors requires balancing subject domain fit, hourly rate ranges, verified student feedback, and weekly schedule availability. In addition, academic marketplaces require real-time communication for scheduling inquiries and protected escrow payments so neither party takes on financial or pedagogical risk.
The solution
TutorLink is a full-stack educational marketplace connecting verified tutors with students. It handles the entire lifecycle: profile verification, subject search, real-time messaging, calendar slot reservations, Stripe payments, and post-session rating reviews.
Engineering highlights
- Defensive authentication & session security: Token-based authentication using short-lived JWTs stored exclusively in
HttpOnly,SameSite=Strict, andSecurecookies. This eliminates client-side XSS vulnerabilities associated with localStorage token caching. Built email confirmation and password reset token invalidation. - Dynamic search & multi-criteria matching: Built composite MongoDB indexing querying across subjects, pricing brackets, verified rating tiers, and weekly calendar availability matrices.
- Stripe payment lifecycle: Integrated Stripe Payment Intents API with secure webhook listener validation. Client funds are authorized and captured upon booking confirmation, preventing dispute loops.
- Real-time peer communication: Direct student-to-tutor chat implemented via Socket.IO, with MongoDB chat persistence, unread notification badges, and active session presence indicators.
- Production security hardening: Hardened against common attack vectors using
express-mongo-sanitizeto strip NoSQL query injections, express-rate-limit to throttle brute-force auth attempts, and Helmet to enforce strict Content Security Policies.
Review & architectural takeaways
Securing web applications requires implementing defense-in-depth across the entire stack. Moving authentication tokens out of accessible browser storage into signed HTTP-only cookies, combined with automated webhook payment verification, made TutorLink resilient against both client-side exploits and transaction race conditions.
Next up
SOUQ (ሱቅ) Marketplace →