Answer the question
In order to leave comments, you need to log in
How to implement news feed in node.js?
Available:
*User
*User's friends
*The ability to add some object with small data to your account
*The ability to change and delete these objects
The user has a news feed where these friends objects are displayed, sorted by publication date.
Please share your experience and approach to the implementation of such a news feed.
Approximate audience of the project: several thousand users.
PS Server part for mob. applications, has its own separate server.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
For example, you can do this, the structure of the news and the user:
news = {
content: '',
when: <datetime>,
author_id: <objectid>
}
user = {
name: '',
friends: [<objectid>, <objectid>]
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question