Fork me on GitHub
#re-frame
<
2019-12-03
>
metehan12:12:26

I want to build a simple Clojure server-side Rest API for my re-frame interface. Currently I am using Elixir+Phoneix on server side. I never used Clojure before. Do you have any framework suggestion to start build serverside for re-frame UI.

Janne Sauvala12:12:50

I have noticed that the Clojure community doesn’t like frameworks but they value smaller libraries that can be combined. If your server is simple RESTful API you can use plain Ring

metehan13:12:42

Thank you. This is great I don't like frameworks neither. 🙂

mkvlr14:12:43

I also came from Elixir+Phoenix an am now happy with Pedestal and Integrant

rgm18:12:15

There's a lot of incidental knowledge about how to plug things together that can be hard to get though. They're not precisely frameworks (more like React boilerplates) but http://www.luminusweb.net and https://practicalli.github.io/clojurescript/setup/chestnut.html are both good for getting started.

rgm18:12:13

If I were to do it all over again, I'd probably pick those two setups apart, then go minimal with ring + integrant (and integrant.repl) + reitit for routing.

oliy19:12:09

There is pedestal-api and martian which work together via Swagger

oliy19:12:54

martian-re-frame has bindings for re-frame too

🌟 2
rgm19:12:59

(Dang, your ClojureX talk is a another victim of the SkillsMatter implosion).

oliy19:12:29

Oh, I hadn't even thought that video would get lost, did they delete their YouTube account too?

rgm19:12:41

hm, good question.

rgm19:12:10

youtube looks a bit thin, but possible I'm looking in the wrong place.

oliy19:12:52

If it was on YouTube, I can't remember. But in any case the slides are here: http://oliyh.github.io/martian/clojurex-bytes/#/

🙏 1
henrik09:12:31

The closest thing I’m aware of that takes a slightly more “fullstack framework” approach is #fulcro. Though with Fulcro, you’ll have some unusual things to learn about (such as a normalized graph database on the browser side). On the backend, #pathom is typically used, but Pathom isn’t married to Fulcro as such. You could potentially take it and adapt it for your use. When used with Fulcro, the plumbing is basically set up for you, so there might be some extra steps involved there (you communicate with the backend using queries encoded in Transit).

henrik09:12:04

This is a great intro to what Pathom does: https://www.youtube.com/watch?v=yyVKf2U8YVg

metehan19:12:45

Woo lots of information thank you all. I am going to check all of them 🍺

mafcocinco12:12:02

I have been using domino-clj as a server side state machine. Has worked well for helping me organize the flow of data necessary to service various requests.