SaaS

MVP in use

CostaSpanish LMS

An educational management platform that centralizes students, courses, lessons, vouchers, and resources. Following the initial MVP delivery, the academy now uses the system in its day-to-day operations. The product continues to evolve iteratively, with improvements focused on reliability, automation, and user experience.
Role
Full-Stack Developer · Freelance
Areas
Product · Frontend · Backend
Stack
Next.js · TypeScript · MongoDB · NextAuth.js · Firebase Storage
CostaSpanish LMS mockup showing class log, finance, and lesson-planning views

01

Product and vision

CostaSpanish LMS is the academy’s internal platform for centralising academic operations and turning fragmented processes into a connected product.

The system is designed first for teachers and administrators. It brings together the context required to manage learners, courses, classes, vouchers, resources, and rules without relying on several disconnected tools.

The MVP is already used in day-to-day operations and continues to evolve. The vision is not to accumulate features, but to build a dependable foundation for preparing, delivering, and recording each learning experience.

CostaSpanish LMS dashboard with quick actions, operational alerts, metrics, upcoming classes, and tasks

CostaSpanish LMS dashboard with quick actions, operational alerts, metrics, upcoming classes, and tasks

Operational overview

The day's work, in context

The dashboard brings together the agenda, tasks, quick actions, and signals that need attention. It moves from an academy-wide overview to the next action without losing context.

Operational layer

It organises the academy’s daily work and keeps decisions about learners, classes, and consumption connected.

Product direction

It is moving towards a richer learning experience without presenting the public and learner-facing layers still in progress as finished.

02

Problem and real-world needs

The challenge was not digitising a spreadsheet; it was keeping people, the learning offer, sessions, and usage rights consistent.

When learners, schedules, materials, vouchers, and follow-up live in separate tools, a simple action can require several manual checks. That fragmentation increases administrative work and makes contradictory data more likely.

The product had to represent real rules: who can attend, which plan is active, how a credit is consumed, what changes when a class is recorded, and which information the teacher needs to continue the process.

Fragmented context

Operational information loses value when courses, learners, resources, and sessions do not share the same context.

Rules with consequences

Attendance, enrolment, vouchers, and credits change business state and cannot rely on UI decisions alone.

Teaching continuity

Each lesson needs goals, history, and resources so preparation does not restart from zero.

03

Core modules

The platform is divided into domains the business can understand, while each domain is designed to collaborate in workflows that span the operation.

Modularity allows one capability to evolve without turning every screen into an exception. Boundaries follow the language of the product and make relationships between academic management, consumption, and administration explicit.

CostaSpanish LMS group summary with the next class, recent activity, learners, plans, and curriculum

CostaSpanish LMS group summary with the next class, recent activity, learners, plans, and curriculum

Academic management

Each course concentrates its academic activity

The group summary connects the next class and recent activity with learners, plans, curriculum, and settings. The organisation follows the course rather than a set of isolated screens.

Learners

Identity, academic profile, and the context needed to connect each learner with courses, plans, and classes.

Courses

Definition of the learning offer and configuration of learning experiences; course profiles continue to gain depth.

Lessons and schedules

Planning, session records, attendance, and continuity between what was prepared and what was delivered.

Vouchers and entitlements

Plans, credits, and consumption policies that determine what each learner can use and under which conditions.

Resources

Teaching materials organised so they can be found, reused, and connected to academic work.

Administration

Roles, finance, and internal tools for operating the service with one shared view of system state.

04

User flows

Value appears when modules stop acting as islands and a decision retains its meaning throughout the journey.

These flows summarise three representative journeys. They do not describe every screen; they show how the product preserves context and applies rules as state changes.

CostaSpanish LMS course plan management with current and upcoming coverage, payments, and attention states

CostaSpanish LMS course plan management with current and upcoming coverage, payments, and attention states

Business logic

Coverage and payments share the same state

The plans view shows each learner's coverage, current and upcoming periods, and payment states. Management actions sit beside the information needed to decide what should happen next.

CostaSpanish LMS class book with filters, metrics, and a table of planned and completed sessions

CostaSpanish LMS class book with filters, metrics, and a table of planned and completed sessions

Operational tracking

A readable record of classes, attendance, and usage

The class book filters sessions and presents their status, participants, attendance, duration, and consumed credits in one table. Expansion preserves the legibility of this denser view.

Learning lifecycle

Connects learner onboarding with the delivered session and its operational effect.

  1. 01Course
  2. 02Enrolment
  3. 03Active plan
  4. 04Lesson
  5. 05Attendance
  6. 06Consumption

Voucher management

Turns an administrative assignment into a validated, traceable entitlement.

  1. 01Create voucher
  2. 02Assign
  3. 03Validate
  4. 04Consume
  5. 05Update balance

Lesson preparation

Brings together the academic context a teacher needs before and after a session.

  1. 01Learner
  2. 02Course
  3. 03Goals
  4. 04Resources
  5. 05Planning
  6. 06Follow-up

05

System architecture

The architecture keeps the React experience responsive while placing business authority at server-side boundaries where rules can be applied consistently.

Next.js provides both the product interface and server layer. Critical operations pass through validation, authorisation, and domain services before changing state persisted in MongoDB through Mongoose.

This structure separates what the interface requests from what the system permits. It also keeps integrations and storage behind defined contracts, preventing external details from dictating the product model.

Next.js and React

A full-stack foundation for composing the experience and running server-side logic close to each use case.

MongoDB and Mongoose

Document persistence with models that express domain relationships, states, and validation.

NextAuth and roles

Authentication and access control ensure each operation is evaluated with the correct identity and permissions.

Zod and explicit boundaries

Input validation prevents incomplete or ambiguous data from reaching critical rules.

Storage and internationalisation

Firebase Storage and ES/EN content are integrated as system capabilities rather than scattered component logic.

06

Domain modelling

The model separates identity, academic context, course definitions, and operational events so one entity does not have to explain the whole product.

A user identifies and authenticates; a learner profile holds academic information. Likewise, a reusable course definition is not the same as the concrete configuration applied to a group or learner.

A lesson acts as an operational event, connecting planning, participants, attendance, resources, and consumption consequences. Active plans and entitlements provide the context required to decide whether that operation is valid.

User

Identity, access, and role; it does not absorb all of a learner’s academic context.

StudentProfile

Represents the academic dimension and allows it to evolve independently from authentication.

CourseTemplate and CourseProfile

Separate a reusable definition from the configuration that adapts a course to a particular experience.

Lesson

Materialises teaching work and connects planning, state, attendance, and follow-up.

Plans and entitlements

Express active rights, limits, and policies without spreading the same rule across several screens.

07

Engineering decisions

The most valuable decisions sit where a convenient implementation could have compromised product consistency.

Technical evolution has focused on reducing duplicated authority and turning implicit rules into canonical paths that can be tested, reviewed, and reused.

Server-side authority

The client expresses intent; the server rebuilds context, authorises the request, and decides the valid change.

Enrolment integrity

A valid enrolment must keep course, learner, and associated entitlements aligned even when several steps are involved.

Canonical builders

Plan and entitlement creation is centralised so separate flows cannot produce divergent structures.

Explicit DTOs and ordering

Relevant boundaries receive deliberate data and keep the order of side-effecting operations predictable.

Policies as domain

Consumption, attendance, and plan types are modelled as configurable rules rather than scattered conditionals.

08

Quality and integrity

In this product, an integrity failure is not only a technical defect; it can change credits, attendance, or a learner’s access to training.

The testing strategy first protects rules with consequences: enrolment, entitlement construction, authoritative writes, and transitions involving multiple entities. Full suites then verify that those guarantees continue to work with the rest of the system.

Concurrency scenarios required assumptions to be tested under conditions closer to production, including replica-set support when an operation needed it. Integrity gates run before migrations or changes capable of amplifying inconsistent data.

Focused tests

Small, explicit cases isolate the rule being protected and make domain regressions easier to identify.

Regression suites

Full validation checks that a local improvement does not break journeys sharing models or services.

Concurrency

Sensitive operations are tested with simultaneous writes in mind, not only the ideal sequential path.

Change gates

Pre-flight checks prevent migrations or transformations from running on state that already violates invariants.

09

Current status and roadmap

The product combines an operational foundation already used by the academy with modules that continue to grow iteratively.

The current layer covers authentication and roles, learner management, classes, vouchers or credits, resources, and administrative tools connected by shared rules.

Evolution is focused on deeper course profiles, lesson preparation and notes, the teaching toolbox, storefront, trial calendar, and further integrations. Each addition must preserve the same authority and integrity guarantees.

Operational now

An MVP used in day-to-day work, with the main internal domains and a technical foundation ready to grow.

In evolution

Greater pedagogical depth, automation, and public interaction without presenting roadmap work as delivered functionality.

10

Lessons learned

The central lesson has been to treat operational rules as product and domain concerns, not as details scattered through the interface.

As the LMS grows, maintainability depends less on adding layers and more on choosing one authority, removing duplicate paths, and making the invariants the business needs visible.

Simple actions still form a domain

Recording a class or assigning a voucher looks straightforward until states, permissions, and related consequences appear.

One construction path

Duplicating critical object creation produces hard-to-detect variations; canonical builders reduce that drift.

Tests protect decisions

A useful test does more than verify a function: it preserves the business rule as models and journeys change.

The model evolves with the product

Separating related concepts allows capabilities to grow without turning initial entities into ambiguous containers.

CostaSpanish LMS — Product case study