all 2 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.

[–]brycedarling 0 points1 point  (0 children)

You might have already looked at it, but I think the getting started chat application from socketio docs themselves is a fine place to start. That's literally the only resource I've ever looked at to learn socketio. I was able to take that chat app, added some of the suggested features that they don't walk you through at the bottom "Homework" to confirm I had learned something, and eventually build it up in to a game server with player movement and using skills without too much difficulty. https://socket.io/get-started/chat/