example-spa-elm-app/README.md

27 lines
854 B
Markdown
Raw Normal View History

2024-12-29 02:09:53 +00:00
# About
Example demonstrating how one might architect a single page application
Elm app.
2025-01-03 13:29:56 +00:00
# Building
2024-12-29 02:09:53 +00:00
```bash
2025-01-03 13:29:56 +00:00
nix-shell -p elmPackages.elm cargo uglify-js
make serve RELEASE=1 # can also do DEBUG=1 instead
2024-12-29 02:09:53 +00:00
```
Now open `http://127.0.0.1:8080` in your browser.
2024-12-29 02:09:53 +00:00
# TODO
- [x] Add Makefile
2025-01-02 03:34:38 +00:00
- [ ] `EventHandlers.onMessage` should inject successfully decoded message into
Msg type directly...
- [ ] Run `uglify` twice as per [this link](https://github.com/rtfeldman/elm-spa-example/tree/master?tab=readme-ov-file#production-build)
- [ ] 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
2025-01-01 01:50:26 +00:00
- [ ] Add GPLV3 License
- [ ] Add `make release` target that is nix ready...
2024-12-29 02:09:53 +00:00
- [ ] Add `default.nix`