Questions tagged [luminus]

Luminus is a Clojure Web Micro-framework which uses Compojure, Ring and some popular middlewares

102 questions
12
votes
3 answers

What's the relationship between Leiningen, Compojure, Luminus and Ring?

I'm starting my new learning phase of Clojure. I want to build a web application, but I don't know which one to use. I've searched for several hours online, and all the things I found kind of overlap each other and I'm a little bit confused by…
albusshin
  • 3,930
  • 3
  • 29
  • 57
10
votes
3 answers

What does :provided mean in profiles.clj?

Luminus right now is creating a profiles.clj with this content: {:provided {:env {;;when set the application start the nREPL server on load :nrepl-port "7001" :database-url…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
8
votes
1 answer

How do I get Swagger UI to let me provide authentication header?

I used Luminus, along with reitit and swagger-ui to generate a page that lets me try out my Luminus API. I can just enter my API request body and submit to test my API. Now I have added authentication using buddy and my API requires a token to be…
Matt Lally
  • 435
  • 1
  • 3
  • 13
8
votes
1 answer

How can I attach CIDER's debugger to a Luminus web application?

I have a Luminus project with the server running on localhost:7000. I use cider-connect to attach myself to this repl, but I'm met with the following wall: ; CIDER 0.10.0snapshot (package: 20150820.852) \ (Java 1.7.0_51, Clojure 1.7.0, nREPL…
Sean Allred
  • 3,558
  • 3
  • 32
  • 71
8
votes
1 answer

lein ring server: "That's not a task"

I'm trying to build the hello-world example for compojure and it's failing to start the ring task. $ lein version Leiningen 1.7.1 on Java 1.7.0_65 OpenJDK 64-Bit Server VM $ lein new compojure test Created new project in: /home/myaccount/test Look…
voodoogiant
  • 2,118
  • 6
  • 29
  • 49
6
votes
1 answer

Clojure establishing multiple database connections

We have a Clojure web application that is used by multiple projects (>20) that have multiple users logging in simultaneously. All projects have their own MySQL database. We have tried to figure out a way to use one application instance to serve…
Dr Ljotsson
  • 462
  • 1
  • 4
  • 14
5
votes
2 answers

How do you list of the options of a Leiningen template?

From the Luminus documentation I see there's an option called h2 when creating a Luminus app: lein new luminus guestbook +h2 How can I see all the available options?
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
4
votes
1 answer

Variable not expanded inside an included selmer template

I have a top-level template where I want to use a "fragment" template inside a for cycle but I'm not able to pass in the variable value: {% for item in coll %} {% include "fragment.html" with name="slack" item=item %} {% endfor %} item and…
Juraj Martinka
  • 3,991
  • 2
  • 23
  • 25
4
votes
4 answers

Clojure: What is the default server for the luminus framework?

As of right now (2018) what is the http/tcp server used when you set up a luminus template project with its default setting? I'm reading that luminus uses immutant, however, immutant is a collection of other stuff. and I've also read that the…
MFave
  • 1,044
  • 2
  • 8
  • 19
4
votes
2 answers

Clojure Luminus Migrations - Only one table per migration file

I'm creating a web app with Clojure and Luminus, but when I create a migration file with all the tables I need, it will only create the first. This is my user-table.up.sql file: CREATE TABLE UserTable ( id INTEGER PRIMARY KEY AUTOINCREMENT, …
Vasco Ferreira
  • 2,151
  • 2
  • 15
  • 21
4
votes
1 answer

Problems creating an executeable for a luminus clojure project

I am building a server program to provide an API to a mongo database containing details of photos. All works well running it from the REPL, or if I start it using lein run. The problems happen when I try and run the uberjar. Building the uberjar…
Iain
  • 300
  • 2
  • 13
4
votes
2 answers

Multithreaded Clojure Luminus server?

I am not sure how to phrase this, but any ideas about how to achieve the below behavior would be great. I have web server that makes long running calls to a command line program. I want the server to handle multiple long running calls, but not…
user1559027
  • 343
  • 2
  • 13
3
votes
1 answer

Clojure - How To Properly Mount State In Unit Tests

I'm attempting to test some database operations in a luminus app with the Monger database library. Ideally, I'd like the following to work. I've stripped out some of the irrelevant code. Test File: (ns app.test.handler (:require [clojure.test…
newBieDev
  • 484
  • 3
  • 11
3
votes
2 answers

Luminus and Re-Frame Uberjar Error

I've got a small app generated by lein new luminus +jetty +mongodb +re-frame +cider that errors when running the uberjar command. It works as a dev app run via lein repl. I've seen similar errors being put down to a dependency mismatch as…
Alex Lynham
  • 1,318
  • 2
  • 11
  • 29
3
votes
1 answer

How to create an uberjar correctly with "lein uberjar"?

if I use lein run the project is no problem. But when I use jave -jar blog.jar after lein uberjar It happen exceptions. 16-Jul-20 11:28:05 DESKTOP-C3SC9AR INFO [slf4j-timbre.adapter] - >> starting.. *db* Exception in thread "main"…
Tornado
  • 115
  • 1
  • 7
1
2 3 4 5 6 7