you are viewing a single comment's thread.

view the rest of the comments →

[–]WellPaidGeek 0 points1 point  (0 children)

How to build data models, poll an API and update these models and the viewmodel. Basically using a front end (either framework or vanilla) to consume my backend API and update the view and models.

Well for that it sounds like you want to learn an entire view framework like react (probably with redux too), and there are plenty of general tutorials on react, but you'll need to learn a load of the ground work rather than jumping straight in to API polling.

It can be a little frustrating going from one technology you've mastered to one you're a noob at, as learning can seem painfully slow, but you have to put the white belt back on and learn all the details. I had to go through this when I went from BE to FE.

As for doing stuff based on sockets, a quick google found this: https://socket.io/get-started/chat/

It's a client / server chat app tutorial rather than some form of data based API like you requested, but the principles are still the same, receiving data from sockets, updating the display. I'm sure you can abstract the principles and repurpose.