muntabot
muntabot copied to clipboard
A robot for generating questions at an oral exam in introductory programming.
muntabot
This single-page client-only web app is available for execution in your browser here:
https://cs.lth.se/pgk/muntabot
Developed using fantastic Scala 3 and Scala JS. Built using sbt
and nodejs
.
How to develop
-
Clone or download this repo on your machine.
-
While hacking type
~fastLinkJS
insbt
and open/reload thedev/index-dev.html
file in your browser -
To avoid having to reload the page upon every change the vscode extension Live Server can be used to do this automatically. Install the extension in vscode and right-click
dev/index-dev.html
and clickOpen with Live Server
after running~fastLinkJS
insbt
.
How to deploy
When an update is ready for production, use this script:
sbt "clean;fullLinkJS"
cp target/scala-3.4.2/muntabot-opt/main.js public/.
and upload the contents of the public
folder to your webserver including the files main.js
, index.html
and style.css
.
To test before uploading to production you can install the vscode extension Live Server and right-click public/index.html
and click Open with Live Server
.