briantwene / paperflow

A Cross Platform Desktop app made to discover and download beautiful wallpapers sourced from Reddit.
3 stars 0 forks source link

PaperFlow: Check if a backend is needed #2

Open briantwene opened 1 year ago

briantwene commented 1 year ago

Considering Tauri is being used and the frontend is with react, will a backend be still needed for such an app or would it be possible to ship everything together like with Snappub Next.Js

Some questions I have?

briantwene commented 1 year ago

It seems like the backend part is only possible through the Tauri core, or using rust to code the backend. Tauri has a command API that is similar to how HTTP Requests are done in a normal web app and backend server.

So, the idea would be to make requests to the tauri backend for the image data and then present them on the frontend, like before.

The kinds of requests:

These things can be each a module and from there can be split into other files, could do a controller service kind of thing

Will need to look at the basics of rust and the dive into implementing the things that are needed will 100% need to make calls to the API from then backend

And can make the frontend purely presentational

Overall Answer: It is possible to do in the frontend but not ideal with the setting and security concerns