Step 5: Compiling our first exam
Now we can compile the exam. To do this, we need to open a terminal in the folder of your rumbas project. Then we can run the following command:
rumbas check exams/first_exam.yaml
It should result in All 1 checks passed!. This means that the exam is valid and can be compiled.
rumbas compile exams/first_exam.yaml
This command will create a folder in _output/en/exams/first_exam with the compiled exam.
To view this in the browser you should run a local webserver that hosts the _output folder.
Some options are:
- Live server extension in visual studio code (this is installed in our Github Codespaces setup). Click on the
Go Liveoption in the right bottom corner. - The Web Server for Chrome extension
- Python: execute
python -m http.serverin the_outputfolder - ...