relax, have fun and pay per second in real time
- node (v6.0.0+)
- yarn
- any Java SDK (Version 8 or higher)
Run in development:
yarn
yarn watch-assets
yarn watch # in a separate terminal
shadow-cljs
will be installed in node_modules/
when you run yarn
.
:dev-http
specifies that target/
will be served at http://localhost:8080 .
After page is loaded, you may also start a REPL connected to browser with:
yarn repl
When watch compilation is running, open a cljs file in vim and
:CljEval (shadow/repl :dapp)
Compile with optimizations with build
sub-command:
yarn build # also serving compiled target/ on http://localhost:8080
Continuously deployed by Netlify on each merge into master
with the following
config:
Build command: yarn deploy
Publish directory: target
with the following ENV variables:
NETLIFY_USE_YARN=true
NODE_VERSION=12
and all assets optimizations features turned on.
Basically main.js
is served by Netlify's CDN at a fingerprinted url based
on a hash of the file content, with a cache expiry of ~1 year.
This means that:
- a user visiting the dapp from an online device will always get the latest release of the code
- a returning user will get the cached version if no release have been published since the last visit.
WTFPL