(ns dev "Tools for interactive development with the REPL. This file should not be included in a production build of the application." (:require [clojure.java.io :as io] [clojure.java.javadoc :refer [javadoc]] [clojure.pprint :refer [pprint]] [clojure.reflect :refer [reflect]] [clojure.repl :refer [apropos dir doc find-doc pst source]] [clojure.set :as set] [clojure.string :as str] [clojure.test :as test] [clojure.tools.namespace.repl :as tn] [check.parts-test] [check.start-with-test] [check.suspend-resume-test] [mount.core :as mount] [app.utils.logging :refer [with-logging-status]] [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 [] (with-logging-status) (mount/start #'app.config/app-config #'app.nyse/conn #'app/nrepl)) ;; example on how to start app with certain states (defn stop [] (mount/stop)) (defn refresh [] (stop) (tn/refresh)) (defn refresh-all [] (stop) (tn/refresh-all)) (defn go "starts all states defined by defstate" [] (start) :ready) (defn reset "stops all states defined by defstate, reloads modified source files, and restarts the states" [] (stop) (tn/refresh :after 'dev/go))