https://github.com/em-ak/anticafe
Pay for time spent, in real time
https://github.com/em-ak/anticafe
cljs pet-project web3
Last synced: about 2 months ago
JSON representation
Pay for time spent, in real time
- Host: GitHub
- URL: https://github.com/em-ak/anticafe
- Owner: Em-AK
- Created: 2020-10-17T16:40:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T23:29:33.000Z (over 3 years ago)
- Last Synced: 2025-02-24T08:14:32.010Z (over 1 year ago)
- Topics: cljs, pet-project, web3
- Language: Clojure
- Homepage: https://danti.cf
- Size: 185 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Anti-café
----
*relax, have fun and pay per second in real time*
[](https://app.netlify.com/sites/goofy-mahavira-0ddc1f/deploys)
### Requirements
- node (v6.0.0+)
- yarn
- any Java SDK (Version 8 or higher)
### Develop
Run in development:
```bash
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:
```bash
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:
```bash
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](https://docs.netlify.com/site-deploys/post-processing/#post-processing-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