Basic Leiningen template for web applications with reagent, using ajax and the transit format to communicate with the backend.
It integrates figwheel for quick and responsive development.
To create an application with this template:
lein new reagent-ajax <project_name>
- Start a repl with
lein repl
- run
(go)
, this will start figwheel, the server on port8080
, and other bootstrapping stuff - Visit
http://localhost:8080
- Compile the clojurescript with:
lein cljsbuild once prod
- Create the jar with
lein uberjar
- Run it
java -jar target/<project_name>.jar
├── README.md
├── dev
│ └── clj
│ └── user.clj
├── project.clj
├── resources
│ ├── log4j.properties
│ └── public
│ ├── css
│ │ └── screen.css
│ └── index.html
├── src
│ ├── clj
│ │ └── <project_name>
│ │ ├── core.clj
│ │ └── server.clj
│ └── cljs
│ └── <project_name>
│ └── core.cljs
└── test
└── clj
└── <project_name>
└── core_test.clj
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.