Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.56 KB

README.md

File metadata and controls

33 lines (18 loc) · 1.56 KB

muntabot

Build Status

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

  • Prerequisites: sbt, Node.js

  • Clone or download this repo on your machine.

  • While hacking type ~fastLinkJS in sbt and open/reload the dev/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 click Open with Live Server after running ~fastLinkJS in sbt.

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.