Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Add ion stuff to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobobryant committed Jun 8, 2019
1 parent b07309b commit e9ce837
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions mono.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{:version "0.1.4-SNAPSHOT"
{:version "0.1.4-1-SNAPSHOT"
:group-id "trident"
:github-repo "jacobobryant/trident"
:cljdoc-dir "/home/arch/dev/cljdoc/"
Expand Down Expand Up @@ -61,7 +61,10 @@
:deps [org.immutant/web
nrepl
org.clojure/tools.namespace]}
docs {:local-deps [repl util cli build datascript ring firebase views datomic-cloud]}}
docs {:local-deps [repl util cli build datascript ring firebase
views datomic-cloud ion web web-repl]
:deps [jobryant/mock]
:mvn/repos {"datomic-cloud" {:url "s3://datomic-releases-1fc2183a/maven/releases"}}}}
:managed-deps
{com.andrewmcveigh/cljs-time {:mvn/version "0.5.2"}
com.datomic/client-cloud {:mvn/version "0.8.71"}
Expand All @@ -75,6 +78,7 @@
deps-deploy {:mvn/version "0.0.9"}
garden {:mvn/version "1.3.9"}
hiccup {:mvn/version "1.0.5"}
jobryant/mock {:mvn/version "0.0.1-SNAPSHOT"}
jobryant/pack {:mvn/version "1.0"}
me.raynes/fs {:mvn/version "1.4.6"}
mount {:mvn/version "0.1.15"}
Expand Down
8 changes: 4 additions & 4 deletions src/trident/web.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[trident.datomic-cloud.txauth :as txauth]
[trident.datomic-cloud.client :refer [connect]]
[trident.firebase :refer [verify-token]]
[trident.ion :as jion]
[trident.ion :as tion]
[datomic.ion :as ion]
[datomic.client.api :as d]
[clojure.spec.alpha :as s]
Expand All @@ -19,7 +19,7 @@
(s/def ::config (s/keys :req-un [:env :app-name]))

(u/defconfig
{:uid-opts {:verify-token (fn [token] (verify-token token #(jion/get-param :firebase-key)))}
{:uid-opts {:verify-token (fn [token] (verify-token token #(tion/get-param :firebase-key)))}
:env :dev
:db-name "dev"
:client-cfg {:system ^:derived #(:app-name %)
Expand Down Expand Up @@ -58,10 +58,10 @@
:authorizers (:authorizers config)}))))

(defn-spec init! any? [default-config ::config]
(jion/set-timbre-ion-appender!)
(tion/set-timbre-ion-appender!)

(init-config! default-config (ion/get-env))
(jion/init-config! (select-keys config [:env :app-name]))
(tion/init-config! (select-keys config [:env :app-name]))

(def handler* (wrap-ion-defaults routes (merge (select-keys config [:origins :uid-opts])
{:conn-var #'conn})))
Expand Down

0 comments on commit e9ce837

Please sign in to comment.