 (ns metabase.core
   (:gen-class)
   (:require [clojure.tools.logging :as log]
+            [clojure.java.browse :refer [browse-url]]
+            [colorize.core :as color]
             [medley.core :as medley]
             [metabase.config :as config]
             [metabase.db :as db]

      wrap-session            ; reads in current HTTP session and sets :session/key
      wrap-gzip))             ; GZIP response if client can handle it


(defn init
  "General application initialization function which should be run once at application startup."

  ;; the test we are using is if there is at least 1 User in the database
  (when-not (db/sel :one :fields [User :id])
    (log/info "Looks like this is a new installation ... preparing setup wizard")
    (-init-create-setup-token))

  ;; Now start the task runner
  (task/start-task-runner!)
