Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heliosmaster/reagent-ajax
Basic Leiningen template for web applications with reagent, using ajax and the transit format to communicate with the backend.
https://github.com/heliosmaster/reagent-ajax
clojure clojurescript lein-template leiningen reagent
Last synced: 22 days ago
JSON representation
Basic Leiningen template for web applications with reagent, using ajax and the transit format to communicate with the backend.
- Host: GitHub
- URL: https://github.com/heliosmaster/reagent-ajax
- Owner: Heliosmaster
- Created: 2015-12-13T11:39:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-22T19:20:31.000Z (almost 6 years ago)
- Last Synced: 2024-10-14T16:44:24.834Z (22 days ago)
- Topics: clojure, clojurescript, lein-template, leiningen, reagent
- Language: Clojure
- Homepage:
- Size: 20.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# reagent-ajax
Basic Leiningen template for web applications with
[reagent](https://github.com/reagent-project/reagent), using ajax and the
[transit format](https://github.com/cognitect/transit-clj) to
communicate with the backend.It integrates [figwheel](https://github.com/bhauman/lein-figwheel) for quick and responsive development.
## Usage
To create an application with this template:
```
lein new reagent-ajax
```## 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:```bash
lein cljsbuild once prod
```- Create the jar with
```bash
lein uberjar
```- Run it
```bash
java -jar target/.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
│ │ └──
│ │ ├── core.clj
│ │ └── server.clj
│ └── cljs
│ └──
│ └── core.cljs
└── test
└── clj
└──
└── core_test.clj
```## License
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.