Fork me on GitHub
#datomic
<
2019-09-08
>
nate20:09:57

Hello, so what's a typical setup/stack for a clojure webapp that uses Datomic Cloud/Ions to exposes an API to the web ?

adamtait20:09:15

As far as tooling for managing routes & request handlers, the most popular are probably Ring, Compojure (built on Ring) & Pedestal. The ions starter (https://github.com/Datomic/ion-starter) uses Ring directly. Here’s an example with Pedestal (https://github.com/pedestal/pedestal-ions-sample). Ring/Compojure use middleware for common code, and pedestal uses an interceptor stack.

nate21:09:01

Cool! the pedestal sample README answers many of my questions, thanks a lot!

Adrian Smith21:09:12

In my local repl calls to (ion/get-params) return nil, is there a way to provide details that I suspect in live would exist?

Adrian Smith21:09:54

(because I've put them in AWS Systems Manager Parameter Store)

Adrian Smith09:09:42

(ion/get-params) from datomic.ion namespace

marshall14:09:30

you should be able to fetch params locally. is your local environment configured with AWS credentials that allow GetParametersByPath ?

👍 4
Adrian Smith16:09:26

ah that's good to know, I've got some things I can double check tonight