I'm writing a simple URL shortener in Clojure, using Ring, Compojure, clojure.java.jdbc and MySQL. I'm seeing a very strange issue where some inputs ...
I'm writing a simple URL shortener in Clojure, using Ring, Compojure, clojure.java.jdbc and MySQL. I'm seeing a very strange issue where some inputs ...
I have a (routes (route/not-found)) definition with value derived from an (atom). Though I've updated the atom, the routing retains the initial value. ...
I have come back to clojure after moderately dabbling with it about 10+ years ago, and so I might be doing something silly here. I am trying to write ...
I have the following code to define my routes in Compojure: (ns my-project.my-test (:gen-class) (:require [my-test.template-views :refer :all] ...
I have the following code as a test: (defn test-fn [] (println "This is a test")) (def my-test "test") ((resolve (symbol (str my-test "-fn")))) Whi ...
Typically I have a URL GET route for all of my server-side applications that returns the current git hash as an easy way to check the exact version of ...
I am developing a restful application that uses Clojure on the back and Angular on the front. I have the following tables: Customer, Order, Item, Orde ...
I'm working on a project for a client where there needs to be 125 dropdown menus displayed on one page. I of course am not going to manually add all t ...
I need to make web app with clojure/clojurescript but i can't setup them properly. I don't know how to start clojure and clojurescript REPLes in one p ...
I am trying to set my simple server to allow CORS. I am making a request localhost from a clojurescript application that I am making. I have given a ...
I have a Clojure function that writes out the contents of a vector of URLs to JSON, and returns this from an API endpoint. This endpoint data is read ...
I am new to clojure and I am trying to make a simple API with 3 endpoints. I am trying to implement an endpoint which will take each row of a query an ...
I'm building a Ring-Jetty/Compojure app and there a situation where I have to interact with the AWS S3 API. So I decided to use Cognitect's aws-api fo ...
Synopsis Please note, this question isn't about how to serve a static file — that's working — it's about the special case when wrap-file delivers an ...
I am writing a clojure function that works fine when I am using defnto define it, but it throws arity error when instead I define it using defresource ...
I am trying to create a web service using compojure and swagger with a very simple basic authentication. I would like the authentication to be a singl ...
In my Compojure/Ring web application's handler, I need to serve one set of routes using the site-defaults middleware, and another separate set of rout ...
I am learning how to create web apps using Clojure's Ring. I'm trying to serve a static .html file which contains a reference to a .css file through a ...
I have worked with the Compojure Leiningen template with my code but now I'm struggling to add middleware. For reference, this is the default project: ...
I'm try run tests in leiningen's compojure template (lein new compojure financeiro), using the midje framework and receive a warning: My test code ...