Partho.
  • Projects
  • Skills
  • Contact
  • Education
  • About Me
  • Projects
  • Skills
  • Contact
  • Education
  • About Me
PreviousEducationNextContact

Partho Mukherjee

Full Stack Web Developer

© 2026 Partho Mukherjee. All rights reserved.

Back to Projects

WedPlan

Live / Deployed

Plan your dream wedding beautifully & easily.

Full-stack web application
Live Demo Client Code Server Code Server API
WedPlan screenshot

Project Overview

WedPlan is a full-stack wedding planning platform where customers browse and book wedding services, vendors manage their services and bookings, and admins control the whole platform. It has role-based dashboards for Customer, Vendor and Admin, a complete booking system, Stripe Premium vendor plans activated only after verified webhook events, and a JWT-secured API verified against the Better Auth JWKS endpoint.

Author: Partho Mukherjee•parthomukherjee582@gmail.com

Technologies

Express.jsNode.jsNext.js 16 (App Router)MongoDB AtlasBetter AuthTypeScriptTailwind CSSFramer MotionJWT (jose)StripeReact Toastifyimgbb APIVercel

Detailed Tech Architecture

Frontend

  • Framework: Next.js 16 (App Router)
  • Styling: Tailwind CSS
  • UI Components: Custom reusable components (Tailwind CSS + Framer Motion)
  • Auth: Better Auth (MongoDB adapter, JWT plugin)

Backend

  • Runtime: Node.js 20+
  • Framework: Express.js
  • Verification: jose (JWT + remote JWKS)

Database

  • Name: WedPlan
  • Collections: services, bookings, transactions, user (Better Auth)

Deployment

  • Client: Vercel
  • Server: Vercel

Key Features

Secure authentication with Better Auth (email/password and Google login)
Role-based access for Customer, Vendor and Admin with separate dashboards
JWT-protected API verified against the Better Auth JWKS endpoint
Server-side role verification (verifyToken + requireRole middleware, 401/403)
Private routes protected by a proxy with redirect back after login
Persistent login on page reload, including production dashboard routes
Role-based redirect to the correct dashboard after login
Blocked-user enforcement: blocked accounts cannot open the dashboard or book
Home page with banner, Featured Services (6 latest approved from MongoDB), Wedding Categories, How It Works, Why Choose WedPlan and Customer Testimonials
Browse Services with search by name, category filter, location filter and price sort (low to high / high to low)
Service Details page with image gallery, vendor card with Premium badge and booking form
Booking system: customers send booking requests, vendors accept or reject, customers can cancel pending requests
Duplicate active booking prevention for the same service and event date
Own-service booking blocked for vendors; admin accounts cannot book
Vendor dashboard: overview stats, Add Service with ImgBB image upload, My Services (update/delete), Booking Requests with customer information
Free vendor limit: maximum 3 active services; Premium vendors get unlimited services
Stripe Checkout Premium plan (BDT 4,999 / 30 days) activated only after verified Stripe webhook
Idempotent webhook handling with a unique stripeSessionId index (no duplicate transactions)
Admin dashboard: platform stats (users, vendors, customers, services, bookings, revenue), Manage Users (block/unblock), Manage Services (search, approve/reject/delete), Transactions (view only)
Profile settings with ImgBB profile image upload
Toast notifications for all success and error messages (no alert())
Loading spinners and custom 404 page
Fully responsive design (mobile, tablet, desktop)
Password validation (min 8 chars, uppercase and lowercase)

Architecture & System Logic

Repository Pattern: Separate client and server repositories

Authentication & Data Verification Flow:

  • 1User registers or logs in with Better Auth (email/password or Google)
  • 2Proxy checks the session cookie before opening private pages
  • 3Client requests a JWT and sends it as Authorization: Bearer <token>
  • 4Server verifies the token via JWKS (signature, issuer, audience)
  • 5Server loads the user by the token subject, checks role and blocked status, and uses the verified user ID for all ownership checks

Application Routes & Pages

Homepublic
/
Browse Servicespublic
/services
Service Detailsprivate
/services/[id]
Sign Inpublic
/sign-in
Sign Uppublic
/sign-up
Profile Settingsprivate
/profile
Customer Dashboardprivate (customer)
/dashboard/customer
My Bookingsprivate (customer)
/dashboard/customer/bookings
Vendor Dashboardprivate (vendor)
/dashboard/vendor
Add Serviceprivate (vendor)
/dashboard/vendor/add-service
My Servicesprivate (vendor)
/dashboard/vendor/my-services
Booking Requestsprivate (vendor)
/dashboard/vendor/bookings
Subscriptionprivate (vendor)
/dashboard/vendor/subscription
Admin Dashboardprivate (admin)
/dashboard/admin
Manage Usersprivate (admin)
/dashboard/admin/users
Manage Servicesprivate (admin)
/dashboard/admin/services
Transactionsprivate (admin)
/dashboard/admin/transactions
Payment Successprivate (vendor)
/payment/success
Payment Cancelprivate (vendor)
/payment/cancel
404 Not Foundpublic
*

Future Roadmap & Enhancements

  • Add a View Details modal in Admin Manage Users
  • Allow vendors to edit their business name from the profile page
  • Add the optional profile image upload field on the Sign Up page
Previous ProjectFitLog
All Projects
Next ProjectPizza Dot