3 ms·
I have just finished the first iteration of a web app written in clojure and in the several hundred lines of code, I have a single variable which changes state.
by rgoddard 16y ago
I have just finished the first iteration of a web app written in clojure and in the several hundred lines of code, I have a single variable which changes state.
- jacquesm 16y agoNeat! Did you use a templating system? And if so which one?
- die_sekte 16y agoThe usual solution for that would be hiccup, with a few custom functions.
- runevault 16y agoDepends, Enlive is seeing at least some use as well (the web app I built for personal use has enlive handling the HTML as well).
- rgoddard 16y agoI am using hiccup for generating the html, compojure and ring for routing and request/response handling, jetty as the webserver and postgresql as the database
- jacquesm 16y agoDid you cook up your own authentication or is that provided by one of those?
- rgoddard 16y agoAs of now I am just using my own. The user can create an account with username/password. When they login, it will associate the user with the session object. Session management is handled by ring, although the session data resides in memory only. I have a function which wraps around the routes which require the user to be logged in and checks the session to make sure the user is not nil.