Design the core of a social network. Users add friends, publish posts, like and comment, and see a feed of friends' posts.
It must
- Users send and accept friend requests.
- Users publish posts (text, photo) with a privacy setting.
- Users like and comment on posts they can see.
- A feed shows recent posts from friends, in a rankable order.
- Users get notifications for likes, comments and requests.
Keep in mind
- A post must never appear to someone its privacy setting hides it from.
- Friendship is mutual: both sides see it or neither does.
- Search, groups, ads and messaging are out of scope.