It looks like a great work you are doing.
I can’t help you specifically but as a general rule, where possible, I recommend looking at existing software solutions that can perform a specific function rather than starting from scratch.
Capterra is a good software review site which can be a place to start to identify suitable off the shelf solutions: https://www.capterra.co.nz/directory/31278/elearning-authoring-tools/software
I generally recommend steering clear of anything under 4.5 stars too.
Our design partner community mentioned the following ones as worth a look: https://www.thinkific.com/, https://www.learnworlds.com/.
Hopefully others on the forum will have experience they can share.