amsterdamjs-clojurescript-workshop icon indicating copy to clipboard operation
amsterdamjs-clojurescript-workshop copied to clipboard

Educational materials for ClojureScript workshop @ AmsterdamJS '18

Setup

Please do this before workshop. Ping me on Slack if you have any problems with setup.

  1. If you don't have it yet, download and install JDK 8 on your machine
  2. Install Clojure CLI or Leiningen if you are on Windows
  3. Clone workshop repository that we are going to work with
  4. cd into repo's directory and execute the following commands
  • clojure -m figwheel.main -b dev -r or lein do server to start dev server
  • clj -m nightlight.core --url "http://localhost:3000" or lein do ide to start IDE server, which we will work in
  1. Verify build: once initial compilation is done you should see a running app at localhost:3000
  2. Verify IDE: IDE starts at localhost:4000, you should see editor UI there

Topics

  • Syntax, variables, functions and macros
  • Threading macro (pipeline operator)
  • Primitive data types
  • Control flow
  • Data structures
  • Collections transformation
  • State
  • Interop with JavaScript
  • Namespaces
  • Building UIs

Tips

Useful links