Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srid/reflex-stone
Template repository for writing GHCJS/Reflex apps targeting static sites without a backend.
https://github.com/srid/reflex-stone
haskell reflex-frp static-site
Last synced: 9 days ago
JSON representation
Template repository for writing GHCJS/Reflex apps targeting static sites without a backend.
- Host: GitHub
- URL: https://github.com/srid/reflex-stone
- Owner: srid
- License: bsd-3-clause
- Created: 2020-10-10T02:21:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-09T18:54:57.000Z (over 2 years ago)
- Last Synced: 2024-10-11T23:49:28.375Z (25 days ago)
- Topics: haskell, reflex-frp, static-site
- Language: Nix
- Homepage: https://srid.github.io/reflex-stone/
- Size: 1.13 MB
- Stars: 24
- Watchers: 4
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# reflex-stone
Like [Obelisk](https://github.com/obsidiansystems/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][pages])[pages]: http://srid.github.io/reflex-stone/
## Prerequisites
Unless you enjoy compiling for hours at end, you should use the reflex-platform Nix cache by following the [instructions here][cache].
## Development
Running locally using GHC and jsaddle-warp:
```bash
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:
```bash
nix-build
open ./result/index.html
```## Credits
Initial inspiration came from [this blog post](https://vaibhavsagar.com/blog/2019/10/29/getting-along-with-javascript/).
[cache]: https://github.com/obsidiansystems/obelisk#installing-obelisk