Awesome
Hacker News Clone
Development
start web app build
lein cljsbuild auto dev
start server
rlwrap lein repl
(go)
Project structure
client
— client-side (ClojureScript) only codessr
— backend (Clojure) codeui
— shared UI code (*.cljc)
Client
core.cljs
— app initializationrouter.cljs
— hooking into HTML5 Hisotry APIeffects.cljs
— effects handlers (HTTP)controllers
— state management logic
Server
core.clj
— app initializationapi.clj
— data retrieval from storagepage.clj
— HTML document template renderingresolver.clj
— server state retrieval from apimiddleware
— Ring middlewares: Transit format encoding/decoding, RPC API server, route matcher, web app renderer and Etagcomponents
— server components: web server, application