Hi Guys, I am considering moving our backend admin to Yew. Currently we are using Rust API (warp) and services, and VueJs frontend; but there is a very big amount of duplicated work: create all the Rust structs in JS, and write all the HTTP request and responses. Using Yew, do you have any idea how could I reduce this work? Once I have the rust API with all the endpoints, request and response types, do you know any technique or library that would create some magic?
#Fast development via Yew?
1 messages · Page 1 of 1 (latest)
So it would be a huge dev performance improvement, to work on the API, and work on the Yew frontend, and somehow work very minimal on the communication between Yew and the backend
You can have a cargo workspace with the following crates:
- frontend (yew app)
- api-entities (your shared structs/payloads)
- backend (your warp api)
Both frontend and backend would depend on api-entities
So when you change the something in api-entities, you must update your backend and frontend to accomodate the changes. This should ensure that the two stays in sync all the time.
But of course that implies that you always deploy your backend and frontend at the same time. Otherwise you must accomodate multiple versions of the entities.
but in this case I still need to implement all API enpoint calls manually. Do you habe any boost tip for that?