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:
- Complete the
webapp-rpslab, if you haven’t (or at least skim through it); - Read through the transcript of the
webapp-memorylecture (or watch the video); - Read through the minimal
counterexample. - Read through
hotpotatofor an example of a clock-driven app. - Clone the repository and read through the parts that you have trouble with in your own app.
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.7.2/webapp.jar. Run it with the following command:
java -cp ./apps/jvm/target/scala-3.7.2/webapp.jar apps.MainJVM