Skip to content

kennytilton/web-mx-sampler

Repository files navigation

Examples and Samples for...

Web MX

Clojars Project

Web/MX makes Web programming insanely simple, thanks mostly to the Matrix state manager.

If curious about the Web/MX D/X, check out the Web/MX Quick Start. That gets into how the Matrix reactive engine delivers "insanely simple".

This sampler then provides sundry examples to help folks get started with Web/MX. We like examples.

Just Run Something™

First, pick an example:

ls *.cljs.edn

As of this writing, we have these:

intro.cljs.edn
rxtrak.cljs.edn
simpleclock.cljs.edn
svg-examples.cljs.edn
ticktock.cljs.edn
todomvc.cljs.edn

All examples are set up to run via Figwheel, using just the lead filename, eg:

clojure -M -m figwheel.main --build ticktock --repl

For convenience, we have this in our shell init:

figo () {
    echo "figwheel running $1"
    clojure -M -m figwheel.main --build $1 --repl
}

Then we can just type figo ticktock.

After a minute or so the ticktock example should appear in your browser at http://localhost:9500/ticktock.html, leaving a CLJS REPL in the original terminal.

License

Copyright © 2016 Kenneth Tilton

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

About

Web/MX samples and examples under one repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published