From d69a9dca2d4076493ae972cfa3c5e612ab4e9362 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 5 May 2024 13:59:43 +0200 Subject: [PATCH] Zip target and build instructions --- README.md | 18 ++++++++++++++++++ makefile | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f1ac04..017c7d0 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,26 @@ > Krusty Kookies is a bakery which specializes in cookies, and they need a database to keep track of their production and deliveries. +## Building and testing + +This project uses sqlite3 as a database. Migrations happens automatically on launch. +Migrations drop all tables and recreate them, so all data is lost on restart. +By default jdbc connects sqlite to an in-memory database, so all data is lost on restart anyway. + +```bash +./gradlew build +./gradlew test +``` + +The gradle environment is bumped to a recent version, and it is configured with kotlin and junit5. +The syntax for junit4 was ported to junit5. +**Most** of the pre-configured deps in the handout contained CVEs of varying severity, so they were updated to newer versions. +No tests were changed, some helper classes were implemented. + ## Base tables +**This description is no longer consistent with the current state of the project.** + Unsuprisingly, we will need a cookie table. ```sql diff --git a/makefile b/makefile index 30db587..1459c69 100644 --- a/makefile +++ b/makefile @@ -29,7 +29,8 @@ release: scp krusty-imbus_$(GITHASH).tar.gz.minisig server:/public/krusty/krusty-imbus_$(GITHASH).tar.gz.minisig zip: - git archive --format=zip --prefix krusty11/ --output=krusty11-$(GITHASH).zip HEAD + git archive --format=zip --prefix Rest11/ --output=Rest11.zip HEAD + 7za a -tzip CourseProject11.zip ./app/Migrations/*.sql # Generate ERD. Requires eralchemy2 (pip install eralchemy2) erd: migrate