Create the Application

Let’s get started. To create the application, generate a new Luminus project called picture-gallery with authentication, Swagger, ClojureScript, and PostgreSQL database features.

 lein new luminus picture-gallery +auth +swagger +cljs +postgres

As I mentioned earlier, I recommend that you develop the application interactively using the REPL. The env/dev/resources/config.edn file contains the development environment configuration. It declares a variable called :nrepl-port; that’s used to allow us to connect the editor to the REPL once the application is started. The port is set to 7000 by default. All popular Clojure editors allow you to connect to a remote REPL and evaluate the code from the editor using it.

Get Web Development with Clojure, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.