aboutsummaryrefslogtreecommitdiff
path: root/src/cashflow/core.clj
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2026-02-22 15:25:50 +0100
committerTim <contact@bytim.eu>2026-02-22 15:25:50 +0100
commitf279e20468fb5323c33cbf43346c35ddef7f96e0 (patch)
treec488ee2791296917367f704524fa8e41a0b518ea /src/cashflow/core.clj
Initial commit
Diffstat (limited to 'src/cashflow/core.clj')
-rw-r--r--src/cashflow/core.clj14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cashflow/core.clj b/src/cashflow/core.clj
new file mode 100644
index 0000000..530af72
--- /dev/null
+++ b/src/cashflow/core.clj
@@ -0,0 +1,14 @@
+(ns cashflow.core
+ (:require [cashflow.routes :as croutes]
+ [dotenv :as env]
+ [org.httpkit.server :as http-server])
+ (:import java.lang.Integer)
+ (:gen-class))
+
+(defn -main [& args]
+ (let [port (-> (env/env "WEB_PORT")
+ (or "8080")
+ Integer/parseInt)])
+ (println "Starting web server at port 8080...")
+ (http-server/run-server croutes/ring-handler {:port 8080}))
+