Skip to content
/ reflex-stone Public template

Template repository for writing GHCJS/Reflex apps targeting static sites without a backend.

License

Notifications You must be signed in to change notification settings

srid/reflex-stone

Repository files navigation

reflex-stone

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).

Features

  • 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)

Prerequisites

Unless you enjoy compiling for hours at end, you should use the reflex-platform Nix cache by following the instructions here.

Development

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

Credits

Initial inspiration came from this blog post.

About

Template repository for writing GHCJS/Reflex apps targeting static sites without a backend.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project