Skip to content
A ClojureScript/Reagent App Template
Clojure CSS HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/clj/new
.gitignore
README.md
deps.edn

README.md

Create Reagent App

Setup a ClojureScript/Reagent app in one command. This is meant to be used like Create React App but with much less opinion and no need to "eject" from anything.

Want to understand the decision made for this app structure? Read Start a ClojureScript App from Scratch

Housekeeping

Before you can use this tool you will need Java and Clojure installed locally. Here are some resources which should help you get started:

QuickStart

  • Move to the directory where you want your ClojureScript to live and run:

    clj -Sdeps '{:deps
                  {seancorfield/clj-new {:mvn/version "0.9.0"}}}' \
      -m clj-new.create \
      https://github.com/tkjone/create-reagent-app@8c17f0f454f631f9238aed6be19aa1ca3c78f0d4 \
      organization-name/project-name

organization-name/project-name will become of your project and will generate a project structure like this:

project-name
├── README.md
├── deps.edn
├── dev.cljs.edn
├── resources
│   └── public
│       ├── index.html
│       └── style.css
├── src
│   └── organization-name
│       └── project-name.cljs
└── test
    └── organization-name
        └── project-name_test.cljs
  • Move into project-name

    cd project-name
  • Start the app

    clj -A:dev

Notes

The structure of organization-name/project-name is defined by clj-new and not this template. The reason I used these as the example is because it felt cleaner to describe it as org/proj. Feel free to format however you like :)

You can’t perform that action at this time.