Giter Club home page Giter Club logo

openedx-ltistore's Introduction

Openedx LTI Store

A plugin for openedx-platform to store LTI configurations centrally. This allows course creators to add LTI components without having to enter the details like secrets, keys and URLs everytime the component block is created.

Development

The development instructions are written with the Open edX Devstack as reference.

  1. Clone the repostiory to <devstack_root>/src/ directory
    cd <devstack_root>/src/
    git clone [email protected]:open-craft/openedx-ltistore.git
  2. Install the plugin inside the Studio container and run migrations
    cd <devstack_root>/devstack/
    make studio-shell
    pip install -e /edx/src/openedx-ltistore
    python manage.py cms migrate lti_store
    exit
  3. Install the plugin inside the LMS Container
    make lms-shell
    pip install -e /edx/src/openedx-ltistore
    exit
  4. The LTI Consumer XBlock can fetch configurations to LTI Tools using openedx-filters mechanism. It calls the filter org.openedx.xblock.lti_consumer.configuration.listed.v1 whenever it wants to fetch the configurations from external tools like plugins. In order for LTI Store to send available LTI Tools, add the following to any existing openedx-filters configurations for both LMS (edx-platform/lms/envs/devstack.py or private.py) and studio (edx-platform/cms/envs/devstack.py):
    OPEN_EDX_FILTERS_CONFIG = {
        "org.openedx.xblock.lti_consumer.configuration.listed.v1": {
            "fail_silently": False,
            "pipeline": [
                "lti_store.pipelines.GetLtiConfigurations"
            ]
        }
    }
  5. Restart the LMS & Studio for the latest config to take effect
    make lms-restart
    make studio-restart

Now any changes made to the source code should reflect in the application

Adding LTI Tools to the store

  1. Go to https://localhost:18010/admin
  2. Look for LTI_STORE and add LTI Configurations by clicking + Add button

Linting

The project uses Black for linting. To lint the code

make lint

Testing

Unit tests can be run with

make test

openedx-ltistore's People

Contributors

kuipumu avatar tecoholic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.