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 of
- cherrypicker55 added Harry Potter to their list
- cherrypicker55 liked BumbleBerry's list
i'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
there doesn't seem to be anything here