Skill Bridge
A full-stack tutoring marketplace with tutor discovery, subject filtering, availability scheduling, session booking, payments and live-session management.
- Category
- Tutoring marketplace
What it is
Skill Bridge connects students with tutors. Students find a tutor, book a slot from the tutor's own availability, pay online and join a live session. Afterwards they can review the tutor. It is built as two projects: a Next.js frontend and a modular TypeScript API.
The goal was a complete marketplace rather than a demo screen: three kinds of users, each with their own dashboard, real payments, real video sessions and an admin area that keeps the platform in order.
Three roles, three dashboards
Students: a dashboard, their profile, their sessions and notifications. After a session they can write or edit a review.
Tutors: a summary home, their profile, availability, sessions, reviews, finances and notifications.
Admins: an overview, users, bookings, categories, subjects, degrees and the moderation of platform reviews.
Dashboards are protected on the server. A signed-out visitor is sent to the login page and returned to where they were going; a signed-in user who opens the wrong dashboard is sent to their own.
Finding a tutor
Public pages: a landing page, the tutor list and each tutor's page, the subjects list and a page per subject, an about page and the platform reviews.
A tutor profile has a title, a bio, an hourly rate, years of experience, hours taught, education (degree, institution and years), the subjects and categories they teach, an average rating and the number of reviews. Top-rated tutors are flagged.
Subjects belong to categories, and categories, subjects and degrees are managed by admins, so the catalogue grows without code changes.
The landing page is regenerated every 60 seconds, so it stays fast and still fresh.
How a booking works
The student opens a tutor, picks a subject and one of the tutor's free slots.
The frontend asks the API to create a payment.
The API checks the student's session, that the tutor teaches the subject, that the slot belongs to the tutor and is still free, and the price.
It creates a booking on hold (pending payment) with an expiry time, and a Stripe payment intent.
The student is taken to the secure checkout page and pays with Stripe Elements.
Stripe tells the API what happened through a webhook, and the API maps it to its own payment and booking state.
On success the booking is confirmed, a session record is created, a Zoom meeting is created and the notifications go out.
Payments you can trust
The browser is never trusted to say a payment worked: the frontend does not confirm payment itself, and only the backend's verified Stripe webhook can confirm a booking. A held slot that is never paid for expires, and the frontend shows a clear fallback for an expired hold, with separate success and failed pages for each outcome.
Every state is explicit. A booking is pending payment, confirmed, completed, cancelled or a no-show; a payment is pending, paid or failed; the Stripe payment intent has its own set of states, which the API mirrors. There is one payment per booking, and each cancellation records who cancelled, when and why.
Live sessions
Every confirmed booking gets a session record with the join and host links, the actual start and end, the duration and a status: scheduled, ongoing, completed or cancelled.
The meeting itself is a Zoom meeting created through an account-level token, with the topic, the start time, the duration and the Asia/Dhaka timezone. When Zoom is not configured the step is skipped; when it is configured but fails, the person gets a clear error.
Meetings are removed again when a booking is cleaned up.
Reviews and trust
One review per booking, from the student to the tutor, with a rating and a comment. A tutor's average rating and review count are kept up to date.
Separate platform reviews can be submitted by signed-in users, shown publicly once visible, and hidden or deleted by an admin.
Notifications
People are told what matters: a booking confirmed, a payment confirmed, a session coming up and a booking cancelled. Each notification goes in the app (a bell with an unread count, mark one or all as read) and by email, and records whether it is pending, sent or failed.
Two scheduled jobs keep things tidy: one handles payment maintenance (expired holds and stale payment state) and one processes scheduled notifications. Either can be switched off with a setting, and they need a server that stays running.
The API
Auth: register, login, the current user, refresh, logout, logout everywhere, change and reset password, handled by Better Auth.
Public: the landing payload, the subjects and one subject by its address.
Tutors and availability: a tutor's own profile and slots (create, update, delete), public slots and the option lists.
Bookings and payments: a user's sessions, a tutor's dashboard summary, join and cancel a booking, create a payment, look up its status and receive Stripe's webhook.
Reviews, platform reviews, notifications, the student profile and uploads (images and PDFs).
Admin: a dashboard, users, bookings and full create, edit and delete for categories, subjects and degrees.
The data model
Prisma on PostgreSQL, 19 models: User, TutorProfile, Category, Subject, Degree, TutorCategory, TutorSubject, TutorEducation, AvailabilitySlot, Booking, Payment, Session, Review, PlatformReview, ContactSubmission, Notification, and the three tables Better Auth needs (Account, AuthSession, Verification).
Users are soft-deleted and can be banned. A slot can have only one booking, a booking has at most one payment, one session and one review, and subjects and tutors are linked through their own tables so a tutor can teach several of each.
How it is built
Frontend: Next.js 16 App Router, React 19, TypeScript, Tailwind CSS 4, React Hook Form with Zod (shared schemas for search, reviews, the student profile and availability slots), Stripe Elements, Recharts and Swiper. There are light and dark themes and responsive layouts.
Backend: Express 5 and TypeScript, split by domain: auth, tutor, availability, booking, payment, review, platform review, notification, student, upload, public and admin. Each request goes route, middleware, controller (Zod validation), service, then Prisma, and one central error handler turns failures into clean responses.
Authentication: Better Auth with the Prisma adapter and cookie sessions that last 7 days and refresh daily. Signing up as a tutor creates the tutor profile automatically.
Uploads: images and PDFs through Multer to Cloudinary. Email goes through Nodemailer or Resend.
Deployment: the frontend on Vercel, the API on Render, with the frontend forwarding /api requests to the backend so the browser only ever talks to one address.