Hi guys, i have been learning clojure for the last four months now (this is my first serious attempt at programming), right now i am following @seancorfield advice
“ClojureScript stuff and just start with a very simple Ring app, then add Hiccup for HTML generation (or Selmer, my preference), then add Compojure or Bidi for routing, then maybe add
next.jdbc to work with a database. Take things one step at a time, understanding each step as you go.”
so this past week i have tried building a guest-book application, i started with building the server, then added routing with compojure, then used selmer for HTML generation. All this have worked fine until i wanted to add database functionality. i have setup my database spec and some functions to perform necessary operation (I’m using h2 for database and next.jdbc library).
Here is a snapshot project.clj, database and views.clj files
Going to the url on my browser i get this
Instead of something similar to this
So guys what am i doing wrong/ what haven’t i learnt correctly.