diff options
Diffstat (limited to 'src/cashflow/core.clj')
| -rw-r--r-- | src/cashflow/core.clj | 14 |
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})) + |
