A series of tutorials to guide you in creating and setting up ClojureScript (CLJS) projects.
This series of tutorials will guide you in creating, setting up and running simple CLJS projects. The series follows a progressive enhancement of projects themselves.
Assuming you already installed leiningen, to run the tutorials without coding:
$ git clone https://github.com/magomimmo/modern-cljs.git
$ cd modern-cljs
$ lein ring server
- open a new terminal and cd in modern-cljs
$ lein cljsbuild once
$ lein trampoline cljsbuild repl-listen
- visit simple.html for tutorials 1, 2 and 3
- visit login.html for tutorial 4
- play with the repl connected to the browser
- have fun
That said, I suggest coding yourself the content of the tutorials.
In the first tutorial you are going to create and configure a very basic CLJS project.
In this tutorial you are going to set up a browser connected CLJS REPL (bRepl) using an external http-server.
In this tutorial you are going to substitute the external http-server with ring, a CLJ based http-server.
In this tutorial we start having some fun with CLJS form validation, by porting from JS to CLJS the login form example of Modern Javascript: Development and desing by Larry Ullman.
To be done
Copyright © Mimmo Cosenza, 2012. Released under the Eclipse Public License, the same as Clojure.