Example demonstrating how one might architect a single page application Elm app with Rust as the backend.
Find a file
2025-01-02 10:57:13 -05:00
backend things still work before major re-write 2025-01-02 10:57:13 -05:00
frontend things still work before major re-write 2025-01-02 10:57:13 -05:00
.gitignore gtting closer, now must support ports 2024-12-31 20:50:26 -05:00
Makefile now supporting debug and release builds 2024-12-31 21:14:09 -05:00
README.md things still work before major re-write 2025-01-02 10:57:13 -05:00

About

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

Dependencies MacOS

You will need to have rust and cargo installed on MacOS.

brew install node elm
npm install -g uglify-js@2.4.11

Building

make serve or make serve_debug

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