Moving from CLI to Full-Stack JS Framework

I’m trying to create an application that relies on a few functions that wrap APIs. They call those APIs, pass them data, process that data, then call other APIs based on the return. These are all async, sometimes fail and have to run again, and I want to update the UI based on these calls.

Right now I do this through a bunch of js files run with a node CLI and way too much time. Is there an obvious place for those functions within a full-stack js framework? Is this a pretty common use case?

What about functions that are run once to populate a database, or very infrequently?

If your frontend calls an api, waits for a response, then uses response to call another api, why not just have one api that does all of that or let your api call another api? Backend code would be easier.

Redux Saga is very good at handling async but it can be difficult to learn.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.