Dear Moodle community,
I'd like to know more on plugin development approach. We, as a EdTech startup, develop a MCQ
code to be run. It means that the result of our authoring teacher tool produces a JS Script which needs some libraries to be loaded.
We are beginners in moodle dev ( so please be indulgent ;)) and we've just been investigating moodle development "Activity plugin" in order to integrate our JS-activity scripts (which are generated by our authoring tool) into a moodle course. We've identified and carried out two approaches :
1. The simplest one : develop a plug-in which allows moodle teachers to add JS activity as a url. It turns out that activity stays in our platform and runs within our JS context
. But in this way, I understand that it's impossible to use a callback url to return any grade to moodle for example : Is that correct ? Say in other terms, moodle doesn't accept requests from outside to update his database
2. The hardest one : develop a plug-in to import oue JS script (which represents the activity to be run) and run it from the moodle context. But this approach leads two several questions :
- How importing JS libraries we need, to correctly run our JS script : including into the plug-in package? Calling them via a CDN ?
Do you confirm that the second approach is the only one to update grades for example.
Thanks a lot for your help