I am building a Node.js app. We also need a notification system. I checked out Stream's hosted API and it looks promising for our needs. What's the best way to integrate it with a Node.js app and what are the best practices for doing this?
The requirement is pretty simple. When the user logs in we will show the number of unseen notifications. Once they click on the icon we load the notifications page where all the notifications are shown. The unread notifications are highlighted. Once the user clicks on any notification we will trigger some action and toggle its state from unread to read.
Just need some initial guidances on how to get started with this.
Same Problem!! I have seen the Stream API. It's open source which is awesome but looks super complicated. Ended up using node express rest api with socket.io. Check post on devmag.io
Hi,
Disclaimer: I am the CTO of GetStream.io
Implementing what you describe is fairly simple indeed. First of all sign up on getstream.io and go to the dashboard. You will have an app with 4 different kind of feeds already configured.
tofield. eg ({'actor': 'user:tom', 'verb': 'comment', 'object': 'nice work @john', to: ['notification:john']})We built a very simple example app with NodeJS and Mongoose, here you can find the interesting bits about the realtime UI code and here is how the main html page looks like.
I hope this helps, if not feel free to ping me at tommaso@getstream.io ;)
Best, Tommaso