Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 1.61 KB

README.md

File metadata and controls

74 lines (57 loc) · 1.61 KB

reagent-ajax

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.

Usage

To create an application with this template:

lein new reagent-ajax <project_name>

Run in development mode

  • Start a repl with lein repl
  • run (go), this will start figwheel, the server on port 8080, and other bootstrapping stuff
  • Visit http://localhost:8080

Run in production mode

  • Compile the clojurescript with:
lein cljsbuild once prod
  • Create the jar with
lein uberjar
  • Run it
java -jar target/<project_name>.jar

Directory structure of generated app

├── 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

License

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.