Choosing a framework for tdp-ui #51
Replies: 3 comments 4 replies
-
I'm ok with Next.js but with one condition: we should only use feature supported by static html export ( We want to build an UI over the REST API of It is important to have that in mind because we should not use unsupported features for static export from the start. |
Beta Was this translation helpful? Give feedback.
-
I agree that Next.js looks like the best candidate. My only question is what features do Next provide on top of vanilla React that we will need? |
Beta Was this translation helpful? Give feedback.
-
Hi, I know very little in web development and I don't want to shake things around, but do you guys think htmx could suits TDPs needs ? htmx is fairly young and does not have a big community yet, and it is often out of the question to not use JavaScript, but I think it could be interesting to mention it. It is HTML with extra features, really easy to install (just a script import), dependency free, and very light (~10kB). Even some SaaS products already transited to htmx.
Again, I'm not a web developer! Sorry if this is totally out of context or too late, just wanted to share it and have your thoughts on this. |
Beta Was this translation helpful? Give feedback.
-
We need to select a framework to start building
tdp-ui
(the TDP interface). Here are my thoughts.Scope
The
tdp-ui
objective is to create a graphical interface totdp-server
, with the following scope:tdp-vars
)tdp-deploy
)The link between
tdp-client
andtdp-server
is made via a REST API. No state management (except from fetched data) is needed at first.tdp-ui
provides basic status monitoring, that users can complete using Grafana. Further status and monitoring features could be considered in later versions / discussion.Overall,
tdp-ui
will be similar to Ambari.Criteria for choosing the main framework
Suggestion
IMHO, the ideal choice would be Next.js, an open-source framework backed by Vercel and based on React (backed by Facebook). Both of these tools are among the most reliable and popular today for developing a web application.
The main argument for using Next.js is the React popularity, which would facilitate possible contributions to
tdp-ui
.Next.js has both a rich ecosystem thanks to React but also interesting features such as
next export
(which allows you to export an app without having to run a node.js server). Moreover, Next.js version 13 should bring Remix functionalities into Next.js, which would perfectly fulfill the needs oftdp-ui
(layout rfc).Beta Was this translation helpful? Give feedback.
All reactions