/two-in-shadows

shadow-cljs sample project with client SPA and server API.

Primary LanguageClojure

Shadow CLJS - Two In Shadows

This is sample project with both client and server application developed and build with shadow-cljs. The client app uses rum React wrapper for rendering, the server app uses koa http server.

Develop

Clone this repo and change dir to the created one.

First run npm install to install npm dependencies.

Then in the in separate window/tabs/panes run:

  1. shadow-cljs helper server shadow-cljs server start
  2. shadow-cljs client and server build watcher shadow-cljs watch client server
  3. Koa server node out/server.js

This is enough to get two http server running for your needs as developer. Server app runs on port 8270, client app server runs on port 8280.

Repls

TBD

Copyright © 2018 Josef Pospíšil

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.