ring

Jack Arrington 2024-01-30T20:51:10.276649Z

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 Arrington 2024-01-30T21:00:26.862779Z

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

seancorfield 2024-01-30T21:08:56.509749Z

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

seancorfield 2024-01-30T21:09:05.128949Z

(no session handling tho')

Jack Arrington 2024-01-30T21:13:10.743919Z

Still looks very useful! And well commented. Thanks.

👍🏻 1
Jack Arrington 2024-01-30T21:13:47.347349Z

Session handling I should be able to figure out anyway

dharrigan 2024-01-30T21:56:07.999519Z

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.

1
dharrigan 2024-01-30T21:56:15.716169Z

It does session handling too 🙂

1