-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hub GUI #9
Comments
@th0mas thanks for opening this issue to capture the requirement, discussion and decision of what to do next. 👍 Perhaps the best question in terms of advancing with this is: What want to include in the GUI? As for using Insomnia https://insomnia.rest | https://github.com/Kong/insomnia Where did you find out/learn about it? |
Been working on a LiveView/SSR GUI all morning and have some thoughts:
I'm sure some of these problems (my own experience) will be solved with time, but I'm mindful of not taking too much time on this. I'm happy to press ahead with SSR if needed. The REST API is fully documented now, is it worth just working on a Flutter application? |
@th0mas yeah, I get the feeling that import socket from "./socket"
let channel = socket.channel('room:display', {});
channel.on('update', function (payload) {
fetch(payload.url).then(function (response) {
return response.text(); // get HTML content of response
}).then(function (html) {
document.body.innerHTML = html; // replace contents of page
})
});
channel.join(); // join the channel. e.g. the client would receive a notification of an update over WebSocket Channel |
On the Welcome display I was going to use Scenic, unless you would prefer a browser based version? I'm currently building a basic Admin interface for the hub |
@th0mas yep. that makes sense. the Admin interface does't need to be fancy at all. MVC is perfect. |
GUI Implemented for both Hub and edge nodes |
Currently there's not a "good" way of interfacing with the Hub Server - I'm currently using Insomnia, a REST api development tool.
We should probably build a GUI on top of or next to this API at some point.
Our options are:
React SPA. This allows us to build on top of the existing API and is what I'm most comfortable writing. In addition, using Phoenix channels in React with
Hooks
is very ergonomicElm SPA. Currently(?) seems like Dwyl's go to framework. Haven't used elm much/at all but will be happy to look into this.
Phoenix SSR. Standard Phoenix web app. Benefits of this are no extra setup or config. However, we will need to duplicate some code between API and browser pipelines and write a lot of JS anyway for realtime support.
Flutter? Is it worth building one app for mobile and web?
The text was updated successfully, but these errors were encountered: