Example demonstrating how one might architect a single page application Elm app with Rust as the backend.
Find a file
2025-01-04 01:20:22 +02:00
backend Make the port configurable 2025-01-04 01:20:22 +02:00
frontend Add flake 2025-01-04 00:56:19 +02:00
.gitignore Add flake 2025-01-04 00:56:19 +02:00
default.nix Add flake 2025-01-04 00:56:19 +02:00
flake.lock Add flake 2025-01-04 00:56:19 +02:00
flake.nix Add flake 2025-01-04 00:56:19 +02:00
Makefile Makefile: fix frontend build 2025-01-04 01:08:26 +02:00
README.md drastically improve build scripts 2025-01-03 13:29:56 +00:00
shell.nix Add flake 2025-01-04 00:56:19 +02:00

About

Example demonstrating how one might architect a single page application Elm app.

Building

nix-shell -p elmPackages.elm cargo uglify-js
make serve RELEASE=1 # can also do DEBUG=1 instead

Now open http://127.0.0.1:8080 in your browser.

TODO

  • Add Makefile
  • EventHandlers.onMessage should inject successfully decoded message into Msg type directly...
  • Run uglify twice as per this link
  • JSONify backend code for all send/receive
  • Backend should only communicate over websocket
  • Close websocket after 15s of no response(from frontend) to websocket pings
  • Implement dark mode
  • Add GPLV3 License
  • Add make release target that is nix ready...
  • Add default.nix