-main example in the #'app

This commit is contained in:
anatoly 2015-10-25 22:21:36 -04:00
parent 1be280a478
commit 7c6262ad7d
2 changed files with 7 additions and 3 deletions

View file

@ -13,15 +13,15 @@
[clojure.test :as test]
;; [clojure.core.async :refer [>!! <!! >! <! go-loop alt! timeout]]
[clojure.tools.namespace.repl :as tn]
[mount :as app]
[mount]
[app :refer [create-nyse-schema find-orders add-order]])) ;; <<<< replace this your "app" namespace(s) you want to be available at REPL time
(defn start []
(app/start)
(mount/start)
:started)
(defn stop []
(app/stop)
(mount/stop)
:stopped)
(defn refresh []

View file

@ -59,3 +59,7 @@
(defn create-nyse-schema []
(create-schema nyse/conn))
;; example of an app entry point
(defn -main [& args]
(mount/start))