Em-AK / anticafe

Pay for time spent, in real time

Home Page:https://danti.cf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anti-café

relax, have fun and pay per second in real time

Netlify Status

Requirements

  • node (v6.0.0+)
  • yarn
  • any Java SDK (Version 8 or higher)

Develop

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 .

REPL

After page is loaded, you may also start a REPL connected to browser with:

yarn repl

Connect Fireplace.vim to REPL server

When watch compilation is running, open a cljs file in vim and

:CljEval (shadow/repl :dapp)

Release

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.

License

WTFPL

About

Pay for time spent, in real time

https://danti.cf


Languages

Language:Clojure 56.2%Language:HTML 28.6%Language:CSS 15.2%