https://github.com/morucci/takoyaki
Experiment of some HTMX/Haskell WEB SPA(s)
https://github.com/morucci/takoyaki
haskell htmx lucid
Last synced: about 1 month ago
JSON representation
Experiment of some HTMX/Haskell WEB SPA(s)
- Host: GitHub
- URL: https://github.com/morucci/takoyaki
- Owner: morucci
- License: mit
- Created: 2022-10-04T17:39:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-18T16:54:04.000Z (over 3 years ago)
- Last Synced: 2025-02-10T05:29:16.400Z (over 1 year ago)
- Topics: haskell, htmx, lucid
- Language: Haskell
- Homepage:
- Size: 200 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Takoyaki
Takoyaki is some experiment of on HTMX/Haskell WEB SPA(s).
Here is the list of available applications:
- HazardHunter -> Play it on [https://hazard-hunter.web-apps.top](https://hazard-hunter.web-apps.top)

- Todolist (WIP)
## Start via nix flake
To run an app (for instance the HazardHunter app) from the nix flake:
```
nix run github:morucci/takoyaki -- HazardHunter
firefox http://127.0.0.1:8092
```
Or from the local checkout
```
nix run .# -- HazardHunter
firefox http://127.0.0.1:8092
```
## Start via the last published container image
```
mkdir ~/takoyaki-home
podman run -it --rm --network host -v ~/takoyaki-home:/var/lib/takoyaki:Z docker.io/morucci/takoyaki:latest takoyaki HazardHunter
firefox http://127.0.0.1:8092
```
## Build the container image
The container can be built this way:
```
nix build .#container
podman load < ./result
```
## Hack on the code
```Shell
# Enter the nix develop shell
nix develop
# Start ghicd on the Module app you want to hack on
ghcid -W -c 'cabal repl' -r="Demo.Todo.run 8092"
ghcid -W -c 'cabal repl' -r="Demo.HazardHunter.run 8092"
# Open the browser to get interactive feedback
firefox http://127.0.0.1:8092
# Run your code editor in the nix shell
code .
```