Skip to content

Create a ClojureScript projectλ︎

Create a new ClojureScript project for the development of a website for ClojureBridge London

Use the figwheel-main template with the reagent library to create the the foundation of the project code.

{% tabs deps="deps.edn projects", lein="Leiningnen projects" %}

{% content "deps" %}

Clojure CLI tools and clj-new, for example using the :project/new alias from practicalli/clojure-deps-edn user-level aliases for community tools.

clj -M:project/new figwheel-main clojurebridge/landing-page -- --reagent

{% content "lein" %}

Using Leiningen

lein new figwheel-main clojurebridge/landing-page -- --reagent

{% endtabs %}

A working project is created and when run will show a very basic web page

Hint::figwheel-main templateλ︎

figwheel-main-template project provides a simple way to create a minimal ClojureScript project, optionally using reagent, rum, or react to create a react-style single page app (SPA)