Skip to content

Pathom Demo code from wroc_love.rb 2019

Notifications You must be signed in to change notification settings

realgenekim/pathom-demo

 
 

Repository files navigation

Setup

Install dependencies

Node packages:

$ npm install

Install Clojure

$ brew install clojure

Other platform options: Clojure installer

Run Server

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

Build Workspaces

Visit http://localhost:9630/builds and enable workspaces build.

Open Workspaces

Visit http://localhost:8087/workspaces.html

YouTube Secret Token

It's demo code, so you need to set your youtube-api secret-token in src/demo/secret.cljs.

Examples

There are sample queries in src/demo/notes.cljs.

Caveats

  1. This is demo code ;)
  2. 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 the simple-parser-demo card, until you press Restart button for the component.

Credits

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:

Resources

About

Pathom Demo code from wroc_love.rb 2019

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 70.4%
  • CSS 28.1%
  • HTML 1.5%