Education & Program Platform

Karmayogi School

A comprehensive booking and retreat platform supporting course management, cohort batch scheduling, dynamic pricing (13% VAT, 10% deposit), accommodation selection, and Stripe payments.

Karmayogi School project
01 — Overview

Project details

Karmayogi School is a residential education and yoga teacher training institution in Nepal that runs intensive multi-week certification programs. The organization required a modern digital platform to manage international student enrollment, course cohort scheduling, accommodation selections, and tuition payments.

As a Full-Stack Engineer on this project, I worked across the product lifecycle: designing database schemas, writing server-side pricing and tax algorithms, building enrollment booking forms, implementing administrative batch management, and configuring technical SEO. My central responsibility was translating operational rules into transparent, server-enforced software workflows.

Year2026
RoleFull-Stack Engineer
TypeEducation & Program Platform
02 — The problem

The challenge

The school's operations involve several interconnected variables that had historically caused administrative confusion. Courses run in distinct cohorts with strict start and end dates. Students choose between different accommodation packages (private deluxe rooms, standard twins, or shared dormitories), which directly alters their total package price.

Crucially, financial calculations needed to adhere strictly to Nepal statutory tax rules while offering international students flexible payment options. The platform had to calculate a base tuition subtotal, apply a 13% statutory Value Added Tax (VAT), and compute a mandatory 10% advance deposit to reserve a seat—while clearly displaying the remaining balance payable upon arrival. Handling this dynamically without hardcoding prices in UI components was essential.

03 — The approach

How I approached it

I decoupled course definitions from scheduled cohorts by modeling Program and Batch as separate relational entities in Prisma. This allowed the school to schedule upcoming batches across the calendar year without duplicating curriculum, syllabus, or instructor information.

For financial transactions, I centralized all pricing, VAT, and deposit logic on the server. The client-side interface provides real-time estimates as students select room options, but the server independently recalculates and validates every line item before creating reservation records or initiating Stripe checkout sessions.

Karmayogi School system preview and architecture overview
04 — Engineering

Engineering breakdown

The important parts of the project were not just the interface, but the systems and decisions behind it.

01

Separating course definitions from recurring cohort batches

Courses such as the 200-Hour or 300-Hour Yoga Teacher Training have consistent curriculum details, prerequisites, and certifications, but they run repeatedly throughout the year across different calendar months.

I designed a relational data model where a Program record holds the static educational content, while individual Batch records store specific start dates, graduation dates, maximum student capacities, and open/closed registration states.

When prospective students browse upcoming programs, the public application dynamically queries active batches, ensuring that users can only register for open cohorts with remaining availability. This eliminated manual website updates every time a session filled up.

02

Dynamic pricing engine: base tuition, accommodation tiers, 13% VAT, and 10% deposits

Pricing is dynamic because total cost depends on the student's lodging preference. A student enrolling in a teacher training course can select dormitory lodging, a shared room, or a private room, each carrying distinct price adjustments.

I implemented the server-side pricing calculation pipeline: it sums the base program fee and the selected room adjustment, computes Nepal's mandatory 13% VAT on the taxable subtotal, and calculates the exact 10% advance deposit required to confirm the reservation.

Because currency amounts are sensitive, calculations are performed server-side with integer cents to prevent floating-point rounding errors. The resulting reservation snapshot stores the total tuition, VAT amount, paid deposit, and outstanding balance as explicit database fields.

03

Student enrollment and accommodation reservation workflows

The enrollment funnel collects essential student information: background experience, dietary requirements, medical considerations, and passport details required for residential retreat registration.

I built the registration form with clear step-by-step progress tracking, providing instant visual feedback on how accommodation selections modify both the advance deposit and the total cost.

Upon submitting the form, the reservation is created with a PENDING_PAYMENT status and the student is guided to a secure Stripe payment session for the 10% deposit. Once Stripe confirms the transaction, the reservation transitions to CONFIRMED and sends a confirmation summary to both student and administration.

04

Administrative CMS, secure authentication, and technical SEO

School administrators manage cohort schedules, review applicant medical questionnaires, and track student payments through a protected administrative dashboard.

I secured the administrative routes using server-side JWT authentication with HttpOnly cookies, ensuring that sensitive applicant information and financial records are protected behind strict role checks.

To enhance international discoverability, I implemented dynamic Next.js App Router metadata and JSON-LD structured data (Course and EducationalOccupationalProgram schemas), allowing upcoming training cohorts to index cleanly on search engines.

05

Key engineering work

  • Decoupled course curriculum models from recurring cohort batch schedules
  • Dynamic pricing engine calculating accommodation add-ons, 13% VAT, and 10% advance deposits
  • Multi-step student enrollment workflow capturing dietary, lodging, and medical details
  • Server-validated pricing pipeline preventing client-side price tampering
  • Stripe payment integration for advance enrollment deposit collection
  • Protected administrative CMS for batch scheduling, applicant reviews, and payment tracking
  • Secure session authentication using JWTs stored in HttpOnly cookies
  • Technical SEO architecture with Course structured data and dynamic canonicals
06

Key decisions

  • Modeled Program and Batch as separate entities to prevent duplicating course descriptions across cohorts.
  • Enforced all pricing, 13% VAT, and 10% deposit math on the server with integer precision.
  • Stored deposit amounts and remaining balances explicitly on reservation records for audit clarity.
  • Protected administrative routes with HttpOnly cookie authentication and server-side authorization checks.
07

Results

  • Replaced manual email booking and spreadsheet tracking with an automated, self-service enrollment platform.
  • Prevented calculation errors in multi-tier program and accommodation packages by centralizing tax and deposit rules on the server.
  • Streamlined administrative operations, allowing staff to launch new batches in minutes.
08

What I learned

  • Financial and tax rules belong in explicit server-side logic, not scattered across client UI state.
  • Separating an entity's core definition from its scheduled instances is one of the most effective schema patterns for educational platforms.
  • Providing international students with a clear breakdown of deposit paid versus remaining balance due on arrival prevents check-in confusion.
09 — Stack

Technologies

Next.js App RouterTypeScriptReactPrisma ORMMySQLTailwind CSSStripe APIJWT & HttpOnly CookiesCloudinaryJSON-LD & SEO
Next project

Have a problem
worth solving?

Whether you're building something new or improving an existing system, let's talk about the problem and what it would take to build it well.

Start a conversation