31 lines
926 B
Markdown
31 lines
926 B
Markdown
# 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.
|
|
|
|
```bash
|
|
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
|
|
|
|
- [x] Add Makefile
|
|
- [ ] `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
|
|
- [ ] Add GPLV3 License
|
|
- [ ] Add `make release` target that is nix ready...
|
|
- [ ] Add `default.nix`
|