Prototype: Serlo editor as LTI tool
Requirements:
- Docker 24.0.0 or later
- Create a copy of
.env.local.template
as.env
- (optional) Add secret values to
.env
yarn
to install dependenciesyarn dev
to start the databases and the express backend & build the frontend
Now, the editor is running locally. On code changes the express server will restart and the frontend will be rebuild.
- Go to https://saltire.lti.app/platform, sign in, navigate to "Advanced
options" and upload file
saltire-platform_[TYPE].config
of thesaltire-configs/
directory.TYPE=LTIDeepLinking
shows flow of creating a new Serlo Editor element.TYPE=LTIResourceLink_Instructor
shows flow of opening an existing Serlo Editor element as Instructor (editable).TYPE=LTIResourceLink_Learner
shows flow of opening an existing Serlo Editor element as Learner (non-editable). - Click "Connect"
yarn dev-edusharing
to start the edu-sharing mock- Open
http://localhost:8100
LTI launch is handled by ltijs.
ltijs sets up an express server.
React frontend is bundled with Vite and then provided by the /app
route in
express.
On a successful LTI launch the server returns a signed accessToken
jwt that
the client can then later use to authenticate saving content.