- if you use leiningen for launching the repl, this will be your init-ns
- 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
- run `wanijo.infrastructure.repl/run-migrations!` to create desireable database constraints and structures
### Launch the application server
### Launch the application server
- start a repl
- start a repl
- import `wanijo.main`
- import `wanijo.infrastructure.repl`
- run `wanijo.main/start-server-dev!`
- run `wanijo.infrastructure.repl/dev-server!`
- the application is available on port `8080`
- the application is available on port `8080`
### Launch as a standalone
## Launch as a standalone
- build the uberjar via `lein uberjar`
- build the uberjar via `lein uberjar`
- start your neo4j database, preferably **not** via `lein neo4j`
- 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`
- 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"
- 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"