An open API service indexing awesome lists of open source software.

https://github.com/pepe/two-in-shadows

shadow-cljs sample project with client SPA and server API.
https://github.com/pepe/two-in-shadows

cljs koa rum shadow-cljs

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# Shadow CLJS - Two In Shadows

This is sample project with both client and server application developed and
build with [shadow-cljs][1]. The client app uses [rum][2] React wrapper for
rendering, the server app uses [koa][3] 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

[1]: https://github.com/thheller/shadow-cljs
[2]: https://github.com/tonsky/rum
[3]: http://koajs.com/

Copyright © 2018 Josef Pospíšil

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