Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morucci/takoyaki

Experiment of some HTMX/Haskell WEB SPA(s)
https://github.com/morucci/takoyaki

haskell htmx lucid

Last synced: 6 days ago
JSON representation

Experiment of some HTMX/Haskell WEB SPA(s)

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)

HazardHunter-1.0.0

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