uio-library / scroll-app

Simple, anonymous Markdown-based e-learning system
https://scroll-app.uio.no/
0 stars 0 forks source link

Setup

Local development

npm run dev

This will start a local server on http://localhost:3000/ . It will also start a php artisan course:watch process that watches for changes to courses. When changes are detected, it runs php artisan course:load before notifying browsersync to reload the browser.

Production build

npm run prod

Importing a course

Add your course folder under storage/app/courses, then run

php artisan courses:load

This will import/update all courses.

Course structure

A course consists of

The course.json file

TODO

Exercise types

Text field question

TODO

Multiple choice question

TODO

Other components

Video

To embed a YouTube video with identifier AL0ecpu86Gk:

<youtube-video id="AL0ecpu86Gk"></youtube-video>

The player will resize to fit the width of the module and default to aspect ratio 16:9. For other aspect ratios, you can set the aspect-ratio argument to the height divided by the width. For instance, for a 4:3 video, set aspect-ratio to 3 / 4 = 0.75:

<youtube-video id="AL0ecpu86Gk" :aspect-ratio="0.75"></youtube-video>

TODO: Markdown syntax?