Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Learning Locker is divided into two Github repositories, one for the Learning Locker application and one for the xAPI service.

In Learning Locker the Browser Interface, HTTP Interface, and xAPI Service use their own HTTP ports, hence we’d recommend that you use a server such as NGINX to route to the correct port upon receiving HTTP requests. If you utilise the installation command provided in the installation documentation, it will attempt to install and setup NGINX for you. The installation command will also use PM2 to manage your processes and restart them if they exit to ensure uptime.

LEARNING LOCKER APPLICATION

The Learning Locker application repository is made up of three parts (in the same Github repository), the browser interface (UI)the HTTP interface (API), and the workers. The three parts are ran as their own process to share resources (since JavaScript is single-threaded) and ensure a degree of redundancy.

BROWSER INTERFACE (UI)

The browser interface is written in JavaScript (ES6 using Webpack and Babel), utilising React to construct views and Redux to manage state. The browser interface utilises the HTTP interface to retrieve and change models in Learning Locker. Note that all models automatically save within 3 seconds after they’re changed. For more information and help with the browser interface, you can go to the Help Centre for Learning Locker.

HTTP INTERFACE (API)

The HTTP interface is also written in JavaScript (ES6 using Webpack and Babel) and uses Express, Restify, Mongo, and Mongoose. Express is used to provide HTTP routes and Restify is used on top of Express to provide RESTful routes for each of the models in Learning Locker. Mongoose is used on top of Mongo to manage models in the Mongo database used by Learning Locker.

WORKERS

The workers are also written in JavaScript (ES6 using Webpack and Babel), they utilise Redis and optionally SQS via queue drivers. The workers make use of queues to process long running jobs. Multiple instances of the workers can be used in a cluster to process the queues in parallel across many machines and processors.

Currently there are workers for managing the query builder cacheextracting personas from statementsexporting statements via CSVimporting personas via CSV, and (in Enterpriserecalculating journeys.

XAPI SERVICE

The xAPI service is made up of four parts: statementsactivity profilesagent profiles, and state. The xAPI service provides access to the xAPI HTTP Interface for interacting with the xAPI as defined in the specification. The service is written in entirely TypeScript and primarily uses Express, Mongo, and Redis.

...

STATEMENTS

This part provides a xAPI compliant Statements HTTP interface written in TypeScript to use Express, Mongo, and Redis. It also uses local file storage or AWS S3 storage to store attachments.

The Activity HTTP Resource is also provided as part of this because Learning Locker has to merge activity definitions from inserted statements to provide this resource. You can find out more about this resource in the Activities HTTP interface documentation.

If you require more information there are some useful links provided below.

ACTIVITY PROFILES

This part provides a xAPI compliant Activity Profiles HTTP interface written in TypeScript to use Express and Mongo. It also uses local file storage or AWS S3 storage to store documents.

...

AGENT PROFILES

This part provides a xAPI compliant Agent Profiles HTTP interface written in TypeScript to use Express and Mongo. It also uses local file storage or AWS S3 storage to store documents.

The Agent HTTP Resource is also provided as part of this service to retrieve all of the agents that are used by a single person. A person can be created by inserting statements via the xAPI Statements HTTP interface or using the Persona HTTP interface. Multiple agents can be associated with a person using the Persona HTTP interface too.

If you require more information there are some useful links provided below.

STATE

This part provides a xAPI compliant State HTTP interface written in TypeScript to use Express and Mongo. It also uses local file storage or AWS S3 storage to store documents.

...