lein new app <app_name>
create a new app
lein deps
update your dependencies
lein run
run your project’s “main” function after making sure all the dependencies are up to date.
lein test
run your project’s tests
lein uberjar
bundle up your project and all its dependencies in a single executable jar, allowing your to run it with java -jar
directly.
lein repl
open up a repl
- Cursive is a useful clojure plugin for intellij
- Install cursive plugin
- Install Java
- With Homebrew,
brew tap adoptopenjdk/openjdk
thenbrew cask install adoptopenjdk8
. - If you already have a higher version of Java installed, select Java 8 as the SDK for SearchAPI.
- File → Project Structure → Project → SDK
- Setup the REPL
- Run → Edit Configurations → add Clojure REPL.
-
Select clojure.main and Run with Leiningen options.
-
Run the REPL
cmd + b
find the references
cmd + shift + p
run code selection in the REPL
cmd + shift + a
search for commands
shift + f6
replace all instances of a variable
cmd + option + f7
find all usages of a variable
cmd
+shift
+p
to bring up the package control- open package control: add repository
- install
ClojureREPL
- restart sublime
- run the repl:
cmd
+shift
+p
and search for SublimeREPL: Clojure
- compojure
- https://www.clojure-toolbox.com/
- list of useful clojure tools