I've spent more time that I want to admit trying to compile and run a compojure app from intellij. From the command line I use lein ring server-headless. If I run from inside intellij the REPL begins and I can't call or start the server from inside the REPL. How can I compile and run a server from inside the REPL?
Related Questions in INTELLIJ-IDEA
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- LiveTemplate for TODO shortcut seems not working
- Jetbrains Intellij Works but Fleet does not : "is not recognized as an internal or external command, operable program or batch file."
- Why is there no help text when i write "." in IntelliJ?
- How to enable Kotlin REPL autocomplete
- Selenium error: SessionNotCreatedException | Java, Firefox, everything is updated and should be compatible
- Ubuntu-22.04 File watcher failed repeatedly and has been disabled (External file changes sync might be slow)
- IntelliJ Typescript NoSuchElementException
- I am trying to use h2 in-memory db from my spring boot application, my spring boot version is 3.1.10, but its not connecting to h2 properly
- Is there a new way to undo and redo in the new version of intelliJ
- How to debug a Kotlin/Native application in IntelliJ?
- Why rebuild module does not recompile dependency module, but build module does in IntelliJ Idea?
- Intelij ultimate and spring boot giving me errors
- Minecraft Mod not adding content
- In IntelliJ IDEA Community Edition, can you generate a dependency tree for Maven projects?
Related Questions in CLOJURE
- SSE implementation in Pedestal using individual channel per user
- Within a Clojure project using deps.edn, where is the package name and version tracked?
- How can I update and iterate the sub maps and update map into different location of map at the same time in clojure
- Out of memory in clojure - Nested reduce on Lazy Sequence
- Mac OS X - Brew installed Leiningen permission error / wrong directory
- Consume SpiceDB LookupResources gRPC stream from Clojure using Java gRPC library
- Server sent events in pedestal returns empty response
- How to make quarkus find my Clojure classes?
- Looking for a Clojure/LISP equivalent to Scons
- lazily calling functions for infinite sequence clojure
- Issue with Kafka in Clojure Repl for Arm64 M1
- Unable write parser where the AST can be turned into Clojure code
- Naming convention for simbol of clojure.core/atom, like !foo in Clojure
- How to nest a sequence of layered steps?
- How to type hint a float?
Related Questions in RING
- Draw a ring using the HTML5 canvas without the straight line
- How can I disable the selection / focus halo in a swiftui list when displayed on an iPad / macOS so I can customize
- Reagent + Ring full stack Clojure + ClojureScript app receiving 403 `Invalid anti-forgery token`
- rust build error:failed to run custom build command for `ring v0.16.20`
- What is the difference between defn- and defn ^:private in Clojure?
- What is wrong with my namespace declaration in this clojure project?
- What wrong with run-jetty in the Clojure webapps with Ring?
- How to access the body of a request as a key map in clojure ring server
- RIng with Coercion url parameter returning :status 500
- clojure ring-http is not giving expected response
- lein ring server giving Compiler exception
- Monger session store
- Add content-type header to file-response
- Ring response unable to return JSON body on session POST
- Clojure map returned by JDBC becomes null after inspection
Related Questions in COMPOJURE
- Adding static files to compojure
- Compojure + htmx get yields 403 forbidden
- Clojure map returned by JDBC becomes null after inspection
- Error: "Not found" Clojure, compojure.route
- compojure routes : How to call a function with dependencies from a route?
- updated atom value not used in compojure route
- Ring wrap-json-body is not converting json data to keyword map, but to a string map
- How do I simplify Compojure routes?
- How do I invoke a resolved function in a Compojure view?
- How to embed the current git sha in a URL route in Clojure
- Inserting multiple rows in mysql using korma in clojure
- Why are these `select` elements not being rendered?
- How to setup full Clojure/ClojureScript stack?
- compojure api + allow CORS
- Proper JSON Escaping in Clojure API
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You want to run the server from inside the repl?
Add
[ring/ring-jetty-adapter "1.3.1"]as a dependencyIn the REPL:
(require 'ring.adapter.jetty)(require 'quals.core.handler); require YOUR ns containing the handler(ring.adapter.jetty/run-jetty quals.core.handler/app {:port 3004})You can see all the parameters you can pass here: http://mmcgrana.github.io/ring/ring.adapter.jetty.html
There you have it, the server is running in your repl. If you were looking for more, you can always look at weavejester/lein-ring's source code.
Have fun Clojuring around :)