Sunday 25 August 2019

how would i create a simplified version of facebook's activity/news feed?

i want to create something similar to facebook's news/activity feed.i have an application where users can perform CRUD actions on their books list and whenever a user modifies their list i want to send their action to the activity feed. i want to display something along the lines ofcherrypicker55 added Harry Potter to their listcherrypicker55 liked BumbleBerry's listi'm using ws with node and the built in browser websockets for the client. i'm also using node-postgres for the db.my plan was to just simply emit an event on the server whenever a database query has been completed and send back data to the client. So whenever cherrypicker55 adds a new book to their list, after the db query has been successfully executed i will emit an event to the client.does this make sense? it seems too simple.thanks

Submitted August 25, 2019 at 07:40AM by crazyboy867

No comments:

Post a Comment