What is Clojure?
Clojure is a modern programming language. Depending on your skill level, you can create any type of software with Clojure. This includes games, web apps, mobile apps, and desktop applications.
The first step in programming Clojure is to install it and other things needed for creating Clojure programs.
Continue reading “Hello Clojure”
Most of the Clojure tutorials and Clojure examples on this site require at the minimum Clojure to be installed. Usually, you want Leiningen installed too.
Seriously, do it once and ignore it for the rest of your learning experience. Here are the steps for getting Lein and Clojure up and running.
Continue reading “Installing Clojure with Lein”
If you’re interested in making a commercial grade Clojure web app that deploys as a Docker container, this is the tutorial for you.
Prerequisites: You will need Leiningen and Docker installed.
First step needed is to create a Clojure web app template project. I used the following command.
lein new luminus mywebapp + reitit + http-kit + mysql + swagger + auth
This creates a Clojure web app using the Luminus Framework, Reitit for mapping of incoming requests to the proper handlers, HTTP Kit for HTTP handling, MySQL for JDBC connections to our MySQL database, Swagger for API support, and Buddy for authentication middleware. Your new web app is in the directory,
Continue reading “Clojure Docker Web Apps”
Sometimes you need to configure
to use a custom JDK. On Linux, set the environment variable lein
to point to the JAVA _ CMD
executable you want java
to use. lein
For example, you might add the following lines to your
. bash _ profile
#used by LEIN
JAVA_CMD = $HOME / installs / jdk - 11.0.10 + 8 / bin / java
Once you update your bash profile, you can start using your configuration by using the following command.