From 66b713fae53ef2f377dbeccd6f824d1cb9badd20 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 3 Dec 2023 11:46:17 +0200 Subject: [PATCH] Update the README. --- README.md | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 79491c6..f09c162 100644 --- a/README.md +++ b/README.md @@ -24,27 +24,22 @@ Type: build ```shell -./mvnw clean package +./mvnw clean install -DskipTests=true +# or +make war ``` Type: preparation - create a folder, for example, `project`. -- copy `spring_rest_example-version.jar` from a release to the folder. - - if you build the application from source, find the file in `target/`. -- copy docker/docker-compose.yml to the folder. -- turn up the database in the `project/docker`: +- copy `SpringRestExample.war` from a release to `target/` in the folder. + - if you build the application from source, skip this step. +- copy `Dockerfile` and `docker-compose.yml` to the folder. +- turn up the project in the `project`: ``` - docker-compose up -d + docker-compose up -d --build ``` - wait a minute while the database is bootstrapping. -- now you can connect with the application. - -Type: run - -After the preparation, run the application in the folder, for example, `project`: -```shell -java -jar spring_rest_example-2.0.1.jar -``` +- now you can connect to the application. ## Author