Fixed edge case in serve target by properly handling frontend process cleanup - Replaced `kill %1` with `kill $$FRONTEND_PID` to ensure correct process termination. - Captures frontend process PID (`$$!`) explicitly for better reliability. - Prevents potential issues when multiple background jobs exist. - Improved Makefile structure for readability and maintainability. Signed-off-by: Yehowshua <yehowshua@joyofhardware.com> |
||
---|---|---|
backend | ||
frontend | ||
.gitignore | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
Makefile | ||
README.md | ||
shell.nix |
About
Example demonstrating how one might architect a single page application Elm app.
Licensed under GPLV3.
Building
nix-shell
make serve RELEASE=1 # can also do DEBUG=1 instead
Now open http://127.0.0.1:8080
in your browser.
Elm application hot reloading
Hot reloading for Elm application is exposed at port 8000
under DEBUG=1
mode.
make serve DEBUG=1
visit localhost:8000
TODO
- Address compiler warnings.