<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by R. Karunaratne on Medium]]></title>
        <description><![CDATA[Stories by R. Karunaratne on Medium]]></description>
        <link>https://medium.com/@karunaratneR?source=rss-19a55a3d8c73------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6XfEIcOwb6wNhp-8WDqUOw.png</url>
            <title>Stories by R. Karunaratne on Medium</title>
            <link>https://medium.com/@karunaratneR?source=rss-19a55a3d8c73------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:21:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karunaratneR/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Built a Modern LMS with xAPI, Angular, and Java (and Why You Should Too)]]></title>
            <link>https://medium.com/@karunaratneR/how-i-built-a-modern-lms-with-xapi-angular-and-java-and-why-you-should-too-bdf992dabc9f?source=rss-19a55a3d8c73------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdf992dabc9f</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[lms-systems]]></category>
            <dc:creator><![CDATA[R. Karunaratne]]></dc:creator>
            <pubDate>Thu, 28 Aug 2025 06:43:20 GMT</pubDate>
            <atom:updated>2025-08-28T07:22:54.159Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*YX-hk_JC02uy6x_gWmDEzQ.png" /></figure><p>Thinking of corporate training, e-learning platforms, and all those “Please complete this module before Friday” emails, I’ve been delving deeply into what it takes to create a contemporary Learning Management System (LMS) lately.<br>One powerful but underrated tool here is xAPI. The Experience API is another name for xAPI. You should be aware of xAPI if you’re developing a system that needs to monitor learning progress in addition to “clicking next slide.”</p><p>The design of an LMS driven by Angular on the front end, Java + Spring Boot on the back end, and MySQL for data persistence, with xAPI taking care of the progress tracking magic, will be explained in this article.</p><p><strong>Why xAPI?</strong></p><p>xAPI is not just about storing “completed” or “failed” flags. It allows you to capture detailed learning activities in JSON statements.</p><p>An xAPI statement typically looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*gv0RfbAIDDP4kM9AMEFZeA.jpeg" /></figure><p>This means <em>“Learner X completed Java-101 with 95% score.”</em></p><p>Instead of reinventing tracking formats, xAPI gives you a universal way to log and exchange learning data.</p><p><strong>Database Design</strong></p><p>In MySQL, a clean schema might look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*USqzLikbx4_tT3lXbbmgkA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_0IvIel2HyiBwwP5EYhahA.jpeg" /></figure><ul><li><strong>course</strong>: master dictionary of courses</li><li><strong>xapi_statement_log</strong>: optional, stores raw xAPI JSON for auditing and scalability</li></ul><p><strong>Frontend (Angular)</strong><br> The Angular app acts as the learner’s entry point. Using an xAPI wrapper library (or a lightweight custom service), the frontend emits learning statements whenever a user interacts with content — e.g: when they:</p><ul><li>Start a course</li><li>View or complete a slide (text, image, video, quiz)</li><li>Answer a quiz question</li><li>Finish the course</li></ul><p>These statements are simple JSON payloads sent via REST calls to the backend. The frontend doesn’t store progress; it just <strong>reports events</strong>.</p><p><strong>Backend (Java + Spring Boot)</strong><br> The backend exposes REST endpoints to:</p><ul><li>Receive xAPI-like statements from the frontend</li><li>Persist progress into the user_course table</li><li>Allow administrators to manage courses (course table) and assignments</li></ul><p>The service layer validates requests, updates MySQL, and ensures rules like “mandatory courses cannot be removed.”</p><p>Over time, the backend can also integrate with a dedicated LRS (Learning Record Store) for analytics, but in this design, MySQL alone is sufficient.</p><p>Think of the system as a <strong>relay team,</strong></p><ul><li>The <strong>frontend (Angular)</strong> is the runner who collects the learning moments and quickly hands them off. It doesn’t decide anything; it just reports actions.</li><li>The <strong>backend (Spring Boot)</strong> is the strategist who records every handoff, makes sure it’s valid, and decides where it goes. It’s the brain that interprets those actions and updates progress.</li><li>The <strong>database (MySQL)</strong> is the scorekeeper who writes it all down so reports and compliance checks never lose track.</li></ul><p>Together, they make sure every quiz answered, video watched, or course completed is captured and can be audited later.</p><p><strong>How It Works</strong></p><ol><li><strong>Admin creates a course</strong> → stored in the course table with metadata and JSON descriptor.</li><li><strong>User starts learning</strong> → frontend (Angular) renders content and sends progress updates.</li><li><strong>Progress tracking</strong> → frontend emits xAPI statements (e.g: “answered quiz”, “completed module”).</li><li><strong>Backend (Java + Spring Boot)</strong> receives these statements, logs them in xapi_statement_log, and updates the user’s progress in user_course.</li><li><strong>Reports</strong> → you can query the user_course table for dashboards while keeping full raw data in xapi_statement_log.</li></ol><p><strong>Why Store Raw xAPI Statements?</strong></p><p>Think of user_course as your <strong>summary table</strong> (easy to query for reports).<br> But learning data can be messy — different verbs, quizzes, modules. By keeping <strong>raw JSON statements</strong> in xapi_statement_log, you:</p><ul><li>Preserve the full history of actions</li><li>Support future analytics (AI/ML, dashboards)</li><li>Scale without constantly altering your schema</li></ul><p><strong>Conclusion</strong></p><p>Implementing an LMS is more than just serving content. With <strong>xAPI</strong>, you get standardized tracking; with <strong>MySQL</strong>, you keep data structured; and with <strong>Angular + Java</strong>, you can build a modern, scalable e-learning platform.</p><p>Start small: define your schema, wrap your frontend with an xAPI library, and log every learning action. Over time, you’ll have not just a course delivery tool, but a data-driven learning platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdf992dabc9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>