-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Frontend? #58
Comments
Hey man! You mean something stand-alone, using ncurses, with borders and stuff? Yeah, I think it would be very cool! Actually I'm very visual too, that's why But people are different, and I realize another more "graphical" frontend would appeal to many. |
Actually I meant something like VueJS / React... Kind in the lines of what Flower has. I will take a look at the code, but I rekon I could write the frontend in VueJS, and use WebSockets to keep the real time aspect. It would need an endpoint though and deciding which information would be needed. Imagine something like this: |
WOW, that's incredible! 👏 Now I get what you mean! I like it man, VERY MUCH! |
Awesome! Let me think of some structure, based what you already capture. I’ll try to make a simple prototype to see how we can e evolve this. And I’m not sure if websockets would be needed if served the pages straight from Flask/FastAPI, but i’ll dig a bit deeper! Let me know if have any ideas both visually and infrastructure wise! I also added you on that famous professional network, we’re on the same place, would be great to have a chat as well! Cheers. |
First sketch |
Great! I'm a total beginner in JS as well, but I guess this is reasonably simple, so guess it's a good start.
What do you think? I personally like Flask and FastAPI, but pretty much anyone of them would do, the good thing about FastAPI would be the documentation... but oh well, there are other ways. Any ideas? Another thing to consider is that it would be nice to have only one service running (eg: the backend serving the static files), I really don't know what would be the best way to do that, we'll see. About the design, this was a bad practice from my part: missing fonts, not really nice dark-theme transaction and everything, this is how it was looking during development: |
Hey @lowercase00, I just had a mind blowing idea!!! I found:
Thus, it seems to me there's no work to be done in the backend, the same Regarding the frontend static content, we could serve it from any static site server, like this one in Rust, or Jekyll. And it would be simple to include one of them in the docker image and via docker-compose... I'm even more excited now! It would be awesome to concentrate all server logic in one place, |
I just pushed the base structure at a new repo (https://github.com/clearly00/frontend). |
@rsalmei been a while, but I wanted to get back to this, slowly but still... I've been using Flower daily for a while, and it's interesting to save the information and than rotate (info is normally short lived). I saw a project called Leek that uses ES, but it's way too heavy for the task. I though of having two options: saving the stream to disk (TinyDB) or saving to SQLite Database. From what I've seen, the project would probably need a new layer to save the data (and not just stream to the terminal), and probably a small API for the frontend to interact with. I could help with both, but I was wondering what are your thoughts on that. Cheers! Edit: Just forked the project, I'm thinking of having a new In order to save events, I guess the ClearlyClient could be used, I don't really know how (just opened the project), but it may be the case there's some serializing to do on the client? Since I guess as of now it's suited for the terminal (data format, colors and etc). Maybe passing a "serialized" parameter to the client so that it spits JSON or something instead of pretty printing text. Let me know your thoughts on the design/implementation, I would be happy to work on this. |
BTW, any instructions on how to run w/o Docker? |
Yes, they're on the readme. |
Just wanna say, this looks epic @lowercase00. Hoping it gets released soon. |
Any interest making a front end for this?
I tend to be a very visual person, and would really like a better alternative to flower.
Would that makes sense?
The text was updated successfully, but these errors were encountered: