mp-access / Backend-Re

0 stars 2 forks source link

Course templates #38

Open sealexan opened 1 year ago

sealexan commented 1 year ago

Given #36, it will no longer be possible to programmatically define an entire course. This should however remain possible!

For this purpose, a task pool repo should be able to specify one or more course templates, which can then be imported in the ACCESS UI to create a course structure with a single click, instead of having to construct assignments from tasks manually.

The template could be defined as follows:

  "template": [
    {"assignment": "Using Loops",
     "slug": "loops",
     "description": "In this exercise, you learn how to practice loops",
     "cover": "/resources/assignment_loops.svg",
     "tasks": [
            "/loops/range_using_for",
            "/loops/range_using_while"
        ]
    },
    {"assignment": "Using if/elif/else",
     "slug": "ifelse",
     "description": "Branching based on conditions is a programming staple",
     "cover": "/resources/assignment_ifelse.svg",
     "tasks": [
            "/ifelse/fizzbuzz"
        ]
    }
  ]