An open API service indexing awesome lists of open source software.

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

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
```