Last updated on

WebApp examples

Clone the webapp-examples repository using the following command:

git clone git@gitlab.epfl.ch:cs214/ul2024/webapp-examples.git

The repository holds various examples of webapps to help you get familiar with the CS214 webapp-lib framework.

These examples are provided for you to draw inspiration from: do not copy large amounts code from them directly, and do not use them as a starting point! Instead:

Our staff understand the apps in this repo well: if you have questions, see whether they are also applicable to one of the demo apps, and if so ask us about them rather than about your own code.

Packaging the project

If you wish to package everything as a standalone .jar file, you can use the assemble command in SBT. A .jar file will be produced in apps/jvm/target/scala-3.5.0/webapp.jar. Run it with the following command:

java -cp ./apps/jvm/target/scala-3.5.0/webapp.jar apps.MainJVM