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.
- Host: GitHub
- URL: https://github.com/pepe/two-in-shadows
- Owner: pepe
- Created: 2018-02-09T09:10:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T15:53:38.000Z (over 6 years ago)
- Last Synced: 2025-04-25T07:10:01.622Z (about 1 month ago)
- Topics: cljs, koa, rum, shadow-cljs
- Language: Clojure
- Homepage:
- Size: 94.7 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.