A minimal GraalVM Clojure web application:
- Environment: yogthos/config
- HTTP Server: HTTP Kit
- HTML templating: Hiccup
- Resource management: Mount
- Routing: Reitit
Postgres with clojure.java.jdbc
Authentication and Sessions
Requirements
Usage
The HTTP port for the application is declared in the config.edn
file:
{:port 3000}
Run in dev mode:
lein run
Start the nREPL
lein nrepl
Compile native binary by running:
lein native-image
run the app:
target/app