2024-12-29 02:09:53 +00:00
|
|
|
# About
|
|
|
|
Example demonstrating how one might architect a single page application
|
|
|
|
Elm app.
|
|
|
|
|
2025-01-01 02:14:09 +00:00
|
|
|
|
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
|
|
|
```
|
|
|
|
|
2025-01-01 02:14:09 +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...
|
2025-01-01 23:51:17 +00:00
|
|
|
- [ ] Run `uglify` twice as per [this link](https://github.com/rtfeldman/elm-spa-example/tree/master?tab=readme-ov-file#production-build)
|
2025-01-07 13:54:07 +00:00
|
|
|
- [ ] Frontend should initiate with TimeRequest
|
2025-01-02 15:57:13 +00:00
|
|
|
- [ ] 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
|
2025-01-01 02:14:09 +00:00
|
|
|
- [ ] Add `make release` target that is nix ready...
|
2024-12-29 02:09:53 +00:00
|
|
|
- [ ] Add `default.nix`
|