Like Obelisk, but for static sites.
Goal: be a ready-to-use template repo for writing Reflex apps to be used in statically generated websites (no backend).
- Quick-feedback driven development cycle using ghcid and ghc
- IDE support (Open VSCode and install the suggested extensions)
- GitHub Actions CI & GitHub Pages static site deployment (view site)
Unless you enjoy compiling for hours at end, you should use the reflex-platform Nix cache by following the instructions here.
Running locally using GHC and jsaddle-warp:
nix-shell --run 'ghcid -T :main'
# Or, to run with a custom port
nix-shell --run 'JSADDLE_WARP_PORT=8080 ghcid -T :main'
Build JS using GHCJS:
nix-build
open ./result/index.html
Initial inspiration came from this blog post.