https://github.com/victorvoid/layers-cljs
An example in ClojureScript using 4 layers architecture
https://github.com/victorvoid/layers-cljs
Last synced: 12 months ago
JSON representation
An example in ClojureScript using 4 layers architecture
- Host: GitHub
- URL: https://github.com/victorvoid/layers-cljs
- Owner: victorvoid
- Created: 2018-08-20T22:15:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-06T16:32:38.000Z (over 7 years ago)
- Last Synced: 2025-07-03T19:07:02.808Z (about 1 year ago)
- Language: CSS
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# layers-cljs
An example in ClojureScript using 4 layers architecture
1. data
2. handlers
3. hooks(TODO)
4. props-mapper
## Development Mode
### Start Cider from Emacs:
Put this in your Emacs config file:
```
(setq cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/start-figwheel!)
(figwheel-sidecar.repl-api/cljs-repl))")
```
Navigate to a clojurescript file and start a figwheel REPL with `cider-jack-in-clojurescript` or (`C-c M-J`)
### Compile css:
Compile css file once.
```
lein less once
```
Automatically recompile css file on change.
```
lein less auto
```
### Run application:
```
lein clean
lein figwheel dev
```
Figwheel will automatically push cljs changes to the browser.
Wait a bit, then browse to [http://localhost:3449](http://localhost:3449).
## Production Build
To compile clojurescript to javascript:
```
lein clean
lein cljsbuild once min
```