Skip to content
A ClojureScript/Reagent App Template
Clojure CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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!

Want to learn more about this project? Read Start a ClojureScript App from Scratch

Housekeeping

QuickStart

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

    clj -Sdeps '{:deps
                  {seancorfield/clj-new {:mvn/version "0.7.7"}}}' \
      -m clj-new.create \
      https://github.com/tkjone/create-reagent-app@4444cb8d4192bbfc6ba1304381c62fe3aa46ea17 \
      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.