xstatebyexample icon indicating copy to clipboard operation
xstatebyexample copied to clipboard

Idea: A whole API or a backend service

Open a-y-u-s-h opened this issue 1 year ago • 4 comments

How about modelling backend processes (express as the event source and statechart as the backend functionality - server side authentication, authorization, database interactions, security checks, etc). Good job on the product the way.

a-y-u-s-h avatar Jan 24 '24 17:01 a-y-u-s-h

Thank you a lot, @a-y-u-s-h, for raising this issue!

Do you have a specific example in mind? What would it look like on the website?

Devessier avatar Jan 25 '24 19:01 Devessier

From frontend's point of view, it could be as simple as a promise executing for a call and then showing a response, or it could be a flow - like credit checking flow - except the frontend machine will look different (navigation + making API calls) and backend machine will look different (starting from listening from requests to various things that that Gavin demonstrated in the video I linked above). But feel free to take in simpler similar examples as well. A full backend might go in advanced section.

a-y-u-s-h avatar Jan 25 '24 23:01 a-y-u-s-h

Thanks a lot, @a-y-u-s-h. I added these examples to my list of ideas. I will think about that carefully and come back with something great (I hope)! 😄

Do you have other ideas? Maybe more front-end focused? Your feedback is precious to me!

Devessier avatar Jan 26 '24 21:01 Devessier

There are some on Xstate Catalogue. I'll let you know as I recollect more. You can also try to create component statecharts (like Ark UI does).

a-y-u-s-h avatar Jan 27 '24 00:01 a-y-u-s-h