-main example in the #'app
This commit is contained in:
parent
1be280a478
commit
7c6262ad7d
2 changed files with 7 additions and 3 deletions
|
|
@ -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 []
|
||||
|
|
|
|||
|
|
@ -59,3 +59,7 @@
|
|||
|
||||
(defn create-nyse-schema []
|
||||
(create-schema nyse/conn))
|
||||
|
||||
;; example of an app entry point
|
||||
(defn -main [& args]
|
||||
(mount/start))
|
||||
|
|
|
|||
Loading…
Reference in a new issue