DNAnalyzer
DNAnalyzer copied to clipboard
Output content to a HTML webpage instead of to Terminal
Can you specify please more information about this requirement? Also, I can help with this
Hi @charlygg, thanks for your interest in contributing to the world of open source! Outputting the content of the program to a static web page is something that the developer team will really appreciate. To get started, navigate to our GitHub repository: https://github.com/Verisimilitude11/DNAnalyzer and fork it. Take some time to read the documentation and to acquaint yourself with the code. Thanks again for contributing, we at DNAnalyzer really appreciate your time and help!
Regarding the requirements for this issue, I actually don't have a strong background in web development. However, @Nv7-GitHub should be able to answer this question pretty well. We'll get back to you within 24 hours. However, in a broad sense, we could go about this in 2 ways:
- The program currently outputs to the Terminal - change this to output to a static web page (use a Servlet container with a template page and just fill in the values outputted by the Java code):

- Change all of the code to JavaScript (perhaps we can use a converter online) and create a full-fledged web version of the analyzer
If you have any ideas/suggestions for implementing this, please let us know! Also, if this feels like it would take too much time, feel free to check out some of the easier issues in this project.
@Nv7-GitHub could you please help us with this?
Yeah, the first method would be pretty easily integrated with the existing codebase (just output HTML code instead of formatted text), but the second one would require a lot more code (code an HTTP server). I could implement generating an HTML output file soon though, probably as an option for the output format.
Yeah, the first method would be pretty easily integrated with the existing codebase (just output HTML code instead of formatted text), but the second one would require a lot more code (code an HTTP server). I could implement generating an HTML output file soon though, probably as an option for the output format.
Sounds good @Nv7-GitHub. Let's go with option 1 then. I assigned the issue to you.
Yeah, the first method would be pretty easily integrated with the existing codebase (just output HTML code instead of formatted text), but the second one would require a lot more code (code an HTTP server). I could implement generating an HTML output file soon though, probably as an option for the output format.
Understood, If you are generating the output in HTML, I could integrate some styles (CSS) to the output page (HTML)
Sounds great! Would it be possible to implement this in both light and dark mode?
Maybe the website can have information about DNAnalyzer as well (from the README)
Actually we could do it how go tool pprof does it where it normally outputs to terminal but has an option to host a webserver which returns an HTML page with the data on it
2 questions:
- Would something like this be able to be implemented in Java?
- Would CSS be able to implemented in addition to this?
Yeah I´ve made a static HTTP server without any java dependencies before, and CSS could definitely be implemented in the static page to have a dark & light mode.
Epic. @charlygg does this sound like something you can implement with the help of @Nv7-GitHub and me?
Yes, I can work on the style for the output page, both dark & light mode
@charlygg any updates?
@charlygg do you need any help on this?
@Nv7-GitHub, do you want to get started on this? We can add this as a CLI arg. Let me know if that works (you can take as much time as you want with this issue)!
I'll see if I have time
I'll see if I have time
Alright, sounds good!
@Verisimilitude11 Do you want to lay off with this issue as a GUI is being developed?
@Verisimilitude11 Do you want to lay off with this issue as a GUI is being developed?
No I think that we should keep it actually since what we could do is develop a front end and use our current code as the backend. This would allow people to upload files to the website and get it analyzed. We would still keep the GUI and actively develop it as more privacy centric users and users wanting more performance could use it. So, we would have a CLI for power users, a GUI for scientists/researchers, and a website for average users who don't know how to download Java and gradle.
Hosting that would be expensive... you could probably add a queue system. That is a good idea though, makes it very easy for average users to use this.
Don’t worry about that, I can pay for all fees and we probably get some money through GitHub sponsors. I’m planning on using serverless technology with Azure functions, which means that we’ll only pay for the time on the server that we use. One thing we’ll have to do is do some security stuff to prevent DDOS attacks.
I can handle security stuff with Cloudflare, I'm good at that stuff.
Alright, sounds great!
Stale issue message
Stale issue message
@charlygg are you still interested in this?
Stale issue message