From e72bdf2dff296e4a24a9374120ba5d9b3d2d7ece Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Sun, 27 Dec 2020 18:27:00 +0100 Subject: [PATCH] add some readme info --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6618c62..b3fa5ed 100644 --- a/README.md +++ b/README.md @@ -18,20 +18,21 @@ You'll need: - start a repl with `lein repl` or similar - import `wanijo.infrastructure.repl` - if you use leiningen for launching the repl, this will be your init-ns -- run `wanijo.infrastructure.repl/create-user!` using the desired username and password as parameters +- run `wanijo.infrastructure.repl/create-user!` using the desired username and password as parameters to create an application user - run `wanijo.infrastructure.repl/run-migrations!` to create desireable database constraints and structures ### Launch the application server - start a repl -- import `wanijo.main` -- run `wanijo.main/start-server-dev!` +- import `wanijo.infrastructure.repl` +- run `wanijo.infrastructure.repl/dev-server!` - the application is available on port `8080` -### Launch as a standalone +## Launch as a standalone - build the uberjar via `lein uberjar` - start your neo4j database, preferably **not** via `lein neo4j` +- use the environment variables `NEO4J_PORT`, `NEO4J_HOST`, `NEO4J_USER` and `NEO4J_PASS` to control how wanijo connects to the database - start the jar file via `java -jar [jar-file]-standalone.jar` - if this is the first start with a fresh database, connect to the nREPL as described in the chapter "nREPL" and run the commands described in "First time launch with a fresh database"