Skip to content
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

Use Create React App or Next.js on frontend #101

Closed
fernandoporazzi opened this issue Apr 20, 2022 · 1 comment
Closed

Use Create React App or Next.js on frontend #101

fernandoporazzi opened this issue Apr 20, 2022 · 1 comment

Comments

@fernandoporazzi
Copy link
Contributor

fernandoporazzi commented Apr 20, 2022

Is your feature request related to a problem? Please describe.
The way the front-end code is organised makes it quite hard to install the project and run it locally. Also, by using custom dev and build script, we bring unneeded complexity to our scope. Also, I see that it's quite hard to update dependencies the way it is now.

Describe the solution you'd like
I propose here the usage of Create React Ap for the front-end application. It runs solely on top of Javascript and there is no need to have any back-end tool(Ie.: Python or so). CRA also supports some nice tools out of the box, such as instant reloads when you save your code, optimised bundles and etc... Also, dev, test and build script are already built making the developer experience much better.

Other alternatives
Another possible alternative would be the usage of Next.js which also has some nice and exciting features out of the box, pretty much the same as CRA, but also with Server-side rendering, rehydrations and custom server capabilities may we need those.

TL;DR
The way I see the project is organised now, it's gonna be hard to improve current features and also to build new ones. I suggest the usage of Create React App or Next.js for better UI/UX, maintainability and developer experience.

@Reckless-Satoshi
Copy link
Collaborator

Hello @fernandoporazzi

Thank you very much for bringing up this issue and your contributions.

I do not have previous experience with CRA or Next.js . A priori, it seems it would indeed make easier the dev experience, and if anything was not possible while using CRA I read that the project can be ejected (under the hood uses Babel, webpack,...).

As my frontend developing experience is very limited I am not sure what the trade-offs are, so I need some research a bit more. If you think it is easy to port the project and start using CRA/Next.js, let's do it! :)

A little bit off-topic:
I was on my way to explore how to create a React Native App that has a single Webview and use react-native-tor as well (more info #42 ). However, if jumping into CRA/Next.js requires a more profound rework, this might be the right moment to actually make a migration of the app to a framework that allows seamless web+android+ios development. As I said, I am a total newbie. I have read little about React native, but it seem it could serve this purpose as it also works on the web using react-native-web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants