From db111ecb665c2d511911dc2afb2c037b20a7b4b8 Mon Sep 17 00:00:00 2001 From: PluggPreagar <2373524+PluggPreagar@users.noreply.github.com> Date: Thu, 17 Mar 2022 09:06:24 +0100 Subject: [PATCH] Update README.md add Windows installation --- backend/README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/backend/README.md b/backend/README.md index 1e57ba3..2f1331d 100644 --- a/backend/README.md +++ b/backend/README.md @@ -54,3 +54,45 @@ To set config options at runtime, use `environment variables`, `java system prop ### State management Global state (e.g. instances of database and webserver) are managed by [mount](https://github.com/tolitius/mount). + +# Installation + +## Windows + +The backend runs clojure. To install clojure you might use [leiningen](https://leiningen.org/). + +### java install +But first check to have a java installtion ready to run. + +```bash +java -version +``` + +If not - you can download it e.g. from [Adopt](https://adoptopenjdk.net/installation.html#x64_win-jdk). Dowload a LTS and HotSpot Version using the links and commands below "Windows x64 jdk installation". Basically it is just a Unziping and adding PATH to Environment. + +### lein install + +consider download, self-install and run via lein.bat + * locally + * or in a folder from your PATH-Variable (call SET in commandline to check) + +```bash +curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein.bat >lein.bat +lein run +``` + +### debug + +in case of failure you can add detail information by activating verbose-mode + +```bash +SET VERBOSE=true +lein run +``` + +to check using test-data use + +```bash +set DB_SEED="src/beherbergung/db/seed/test.edn" +lein run +```