Luminus is a Clojure Web Micro-framework which uses Compojure, Ring and some popular middlewares
Questions tagged [luminus]
102 questions
2
votes
2 answers
Where should I save simple configuration settings?
In my clojure Luminus/Compojure app I have this in routes.clj:
(def page-size 12)
(def images-path "/public/images/.....")
I need to move them to a config of some sort. Where is the best place? I'd like something simple and not to use any…

Dett
- 85
- 1
- 1
- 5
2
votes
2 answers
Figwheel not hot reloading or updating on file save when using vagrant
When running figwheel from with a vagrant box it seems that file changes aren't noticed and as a result figwheel does not update/reload the page.

royalaid
- 913
- 1
- 8
- 14
2
votes
2 answers
How to run lein run and lein figwheel?
For a bit now I've just been running lein figwheel to start up my application. I generated the project using the luminus template. However, recently when connecting to a database I found that lein figwheel does not allow me to connect to database.…

Harley Swick
- 51
- 3
2
votes
1 answer
Clojurescript serialize form AJAX POST
Serialize a form in Clojurescript
I'm submitting a simple, small form via Clojurescript (received by my Clojure/Luminus server). If I simply submit the form with a submit button, I can see the response includes a section like this:
:form-params…

WorldsEndless
- 1,493
- 1
- 15
- 27
2
votes
0 answers
Remove item from Luminus Database in Clojure
I am currently writing a website via Clojure code that runs on a Luminus based framework. I have a database that stores name and to-do tasks. The HTML code behind the route that has the text fields for inputting names and to-do tasks first…

Logan
- 1,172
- 9
- 23
2
votes
1 answer
Luminus Database Access
I have followed most of the tutorials on the luminusweb.net website, setting up a database system using the +h2 new app. What I have currently mirrors the guestbook setup like the tutorial shows. I am now wondering how I can access specific entries…

Logan
- 1,172
- 9
- 23
2
votes
1 answer
Simple API to write a file in Clojure Luminus
As a beginning for learning Luminus, I am trying to create a simple API for interacting with the local server environment. Writing a basic file seems like a good way to start, but I can't get it to work. See my code from home.clj:
(defroutes…

user1559027
- 343
- 2
- 13
1
vote
1 answer
Web development with Clojure book: Swagger-ui not recognizing edn
I am working through Web Development with Clojure, Third edition, by Dmitri Sotnikov and Scott Brown.
In Chapter 5, "Setting up for success" we add support for swagger-ui.
On page 117, we are told that we should downgrade Swagger UI to get support…

Viswa V
- 181
- 1
- 11
1
vote
1 answer
Ring response unable to return JSON body on session POST
I'm using ring.util.response and for some reason when setting cookies, I'm unable to return a json body from this POST request.
Returning json (dictionary) in the line below results in the error below. Whereas returning a plaintext string response…

rasen58
- 4,672
- 8
- 39
- 74
1
vote
1 answer
shadow-cljs watch app error on luminus page
I am using luminus to build a webpage. I want to use clojure script so I created a project with
lein new luminus test +cljs
When starting the webpage I get the following message:
If you're seeing this message, that means you haven't yet compiled…

Jonas Fredriksson
- 335
- 4
- 16
1
vote
1 answer
Why isn't my luminus app working on Heroku?
I'm a complete beginner and following this book: https://pragprog.com/titles/dswdcloj3/web-development-with-clojure-third-edition/
I followed the instructions about deploying to Heroku from the book and from here:…

JohnBradens
- 119
- 8
1
vote
2 answers
How do I check Monger connection in a Luminus app (MongoDB not available)?
I'm learning Clojure (1.10) and am writing a small web app using the Luminus framework (3.93), using the Monger client (3.1.0) to connect to a MongoDB instance. Luminus generates some scaffolding code that is to create the database connection pool…

frIT
- 3,213
- 1
- 18
- 22
1
vote
2 answers
Why am I seeing Parameter Mismatch error in Luminus (Clojure)?
Edit (fixed)...
If you are following the Luminus guestbook tutorial or adapting parts of it, you may come across an error like Parameter Mismatch: :name parameter data not found., and it may not go away, regardless of what parameters you use. You…

Matt Lally
- 435
- 1
- 3
- 13
1
vote
2 answers
Lacinia and re-graph incompatible headers
I'm using the last available lacinia version: "0.36.0-alpha-3" with Luminus (Ring+reitit), but this version asks for a specific header:
$ curl 'http://localhost:3000/api/graphql' -X POST --data "{test_by_id(id: 5) { title } }" -H 'Content-Type:…

aarkerio
- 2,183
- 2
- 20
- 34
1
vote
1 answer
lein run migration doesn't create a database
when trying to migrate the following files,
drop table test2;
CREATE TABLE test2
(id INTEGER PRIMARY KEY AUTOINCREMENT,
name VARCHAR(30),
message VARCHAR(200),
timestamp TIMESTAMP(7));
I got the following result:
2019-12-07 10:54:33,129 [main]…

Jonas Fredriksson
- 335
- 4
- 16