Skip to content
forked from Cvmcosta/ltijs

Turn your application into a fully integratable LTI 1.3 tool provider.

License

Notifications You must be signed in to change notification settings

Seiyial/ltijs-fork

Repository files navigation



IMS Global Certified

Easily turn your web application into into a LTI 1.3 Learning Tool.

travisci codecov Node Version NPM package NPM downloads dependencies Status devDependencies Status JavaScript Style Guide APACHE2 License Donate

Please ⭐️ us on GitHub, it always helps!

Ltijs is LTI Advantage Complete Certified by IMS

Ltijs version 5.0 is a re-release of the project as a Certified LTI library, that comes with many improvements and new functionalities and a few API changes, see bellow for a migration guide from version 4.0 and a complete list of the changes made:

Table of Contents


Introduction

According to the IMS Global Learning Consortium, the Learning Tools Interoperability (LTI) protocol is an IMS standard for integration of rich learning applications within educational environments. ref

This framework implements a tool provider as an Express server, with preconfigured routes and methods that manage the LTI 1.3 protocol for you. Making it fast and simple to create a working learning tool with access to every LTI service, without having to worry about manually implementing any of the security and validation required to do so.


Feature roadmap

Feature Implementation Documentation
Keyset endpoint support ✔️ ✔️
Deep Linking Service Class ✔️ ✔️
Grading Service Class ✔️ ✔️
Names and Roles Service Class ✔️ ✔️
Database plugins ✔️ ✔️
Key Rotation
Redis caching

Installation

Installing the package

$ npm install ltijs

MongoDB

This package natively uses mongoDB by default to store and manage the server data, so you need to have it installed, see link bellow for further instructions.

Database Plugins

Ltijs can also be used with other databases through database plugins that use the same structure as the main database class.

Apart from the main methods, not every database plugin has the same functionalities


Tutorial

You can find a quick tutorial on how to set Ltijs up and use it to send grades to a Moodle platform here.

Quick start

Install Ltijs

$ npm install ltijs

Install mongoDB

Setting up Ltijs

const path = require('path')

// Require Provider 
const lti = require('ltijs').Provider

// Setup provider
lti.setup('LTIKEY', // Key used to sign cookies and tokens
         { url: 'mongodb://localhost/database' }, // Database configuration
         { appRoute: '/', loginRoute: '/login' }) // Optionally, specify some of the reserved routes

// Set lti launch callback
lti.onConnect((token, req, res) => {
  console.log(token)
  return res.send('It\'s alive!')
})

const setup = async () => {
  // Deploy server and open connection to the database
  await lti.deploy({ port: 3000 }) // Specifying port. Defaults to 3000

  // Register platform
  await lti.registerPlatform({ 
    url: 'https://platform.url',
    name: 'Platform Name',
    clientId: 'TOOLCLIENTID',
    authenticationEndpoint: 'https://platform.url/auth',
    accesstokenEndpoint: 'https://platform.url/token',
    authConfig: { method: 'JWK_SET', key: 'https://platform.url/keyset' }
  })
}

setup()

Documentation

See bellow for the complete documentation:

Service documentations:

Additional documentation:


Contributing

Please ⭐️ us on GitHub, it always helps!

If you find a bug or think that something is hard to understand feel free to open an issue or contact me on twitter @cvmcosta, pull requests are also welcome :)

And if you feel like it, you can donate any amount through paypal, it helps a lot.

<style>.bmc-button img{height: 34px !important;width: 35px !important;margin-bottom: 1px !important;box-shadow: none !important;border: none !important;vertical-align: middle !important;}.bmc-button{padding: 7px 15px 7px 10px !important;line-height: 35px !important;height:51px !important;text-decoration: none !important;display:inline-flex !important;color:#ffffff !important;background-color:#FF813F !important;border-radius: 5px !important;border: 1px solid transparent !important;padding: 7px 15px 7px 10px !important;font-size: 20px !important;letter-spacing:-0.08px !important;box-shadow: 0px 1px 2px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 1px 2px 2px rgba(190, 190, 190, 0.5) !important;margin: 0 auto !important;font-family:'Lato', sans-serif !important;-webkit-box-sizing: border-box !important;box-sizing: border-box !important;}.bmc-button:hover, .bmc-button:active, .bmc-button:focus {-webkit-box-shadow: 0px 1px 2px 2px rgba(190, 190, 190, 0.5) !important;text-decoration: none !important;box-shadow: 0px 1px 2px 2px rgba(190, 190, 190, 0.5) !important;opacity: 0.85 !important;color:#ffffff !important;}</style>Buy me a coffeeBuy me a coffee

Main contributors

Carlos Costa
Carlos Costa

💻💬 📖 👀 📢
Lucas Terças
Lucas Terças

📖 🔧
Micael Gomes
Micael Gomes

🎨

Special thanks

I would like to thank the Federal University of Maranhão and UNA-SUS/UFMA for the support throughout the entire development process.


I would like to thank CourseKey for making the Certification process possible and allowing me to be an IMS Member through them, which will contribute immensely to the future of the project.


License

APACHE2 License

About

Turn your application into a fully integratable LTI 1.3 tool provider.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%