Fork me on GitHub
#ring
<
2024-01-30
>
Jack Arrington20:01:10

Could someone point me to a good, idiomatic Ring project? Doesn't have to be a prod app necessarily, but preferably something that's not totally trivial, with the bells and whistles you expect to see in a real app, like database connection, session handling, etc. I realize there's lots of different libraries that can be mixed and matched and more than one way to do this stuff. Just looking for at least one idiomatic example of how everything can fit together. A project using Compojure as well would be ideal, since that's what I'm using, but it doesn't have to.

Jack Arrington21:01:26

And I'll add, a medium-sized project would be really nice. I have found the https://github.com/metabase/metabase/tree/e4827e08b623ff9453bc1f6474f3856124298be2 which is written in Clojure, but that's a mountain of code and not easy to quickly look through for examples

seancorfield21:01:56

This may be a bit too simple for your needs? https://github.com/seancorfield/usermanager-example -- Ring + Compojure + next.jdbc + Selmer + Component.

seancorfield21:01:05

(no session handling tho')

Jack Arrington21:01:10

Still looks very useful! And well commented. Thanks.

1
Jack Arrington21:01:47

Session handling I should be able to figure out anyway

dharrigan21:01:07

Whilst I wouldn't say that my little demo project is idomatic (well, it is to me :-)), may I offer another take on your request with this little do-dah.

thanks2 1
dharrigan21:01:15

It does session handling too 🙂

awesome 1