Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.53 KB

README.md

File metadata and controls

39 lines (26 loc) · 1.53 KB

kapten-alloc-web

This single-page client-only web app is available for download and execution in you browser here: https://cs.lth.se/pgk/kaptenalloc

There you can filter the schedule of this course: https://cs.lth.se/pgk

The allocation data was created by the closed source terminal app called Kapten Alloc that solves the hard problem of scheduling under constraints using the fantastic Scala 3 with Scala JS. It is built using sbt.

How to bump Scala version

When changing Scala version you need to edit all these:

  • build.sbt after scalaVersion
  • publish.sh in path of target
  • index-dev.html in path in script tag

How to build and run

sbt fastLinkJS

Open index-dev.html in your browser with File->Open.

How to publish

Can only be done with owner of the right credentials to fileadmin@cs: sh publish.sh

There are no releases in this repo; we run on bleeding-edge master branch.

Force update cache for users

When publishing a new version, change the version for JavaScript file main.js in src attribute of script tag in index.html on line 50. After this run sh publish.sh.

Example:

Change

    <script type="text/javascript" src="https://fileadmin.cs.lth.se/pgk/kaptenalloc/main.js?version=1"></script>

to

    <script type="text/javascript" src="https://fileadmin.cs.lth.se/pgk/kaptenalloc/main.js?version=2"></script>