Node packages:
$ npm install
Install Clojure
$ brew install clojure
Other platform options: Clojure installer
shadow-cljs
compiles ClojureScript to JavaScript, but also ships with features to serve, live-reload, etc. in development mode.
$ npx shadow-cljs server
shadow-cljs - HTTP server available at http://localhost:8087
shadow-cljs - server version: 2.8.18 running at http://localhost:9630
shadow-cljs - nREPL server started on port 59425
Visit http://localhost:9630/builds and enable workspaces build.
Visit http://localhost:8087/workspaces.html
It's demo code, so you need to set your youtube-api secret-token in src/demo/secret.cljs.
There are sample queries in src/demo/notes.cljs.
- This is demo code ;)
- There is an issue I have not tracked down with live-reloading of code.
If you change the code,
shadow-cljs
will automatically compile and reload the code in your browser, but you may not notice the update in thesimple-parser-demo
card, until you pressRestart
button for the component.
Huge amount of work has gone into the Fulcro, Pathom, and shadow-cljs projects. Shout out to everyone contributing to the projects and the core maintainers Tony Kay, Wilker Lúcio, and Thomas Heller.
The parsing code was borrowed from @wilkerlucio's talks: