Skip to content

GirirajSinghRathore/news-feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

newsfeed

Problem Description - UML Diagram : https://drive.google.com/file/d/1hrTWmkRJBa2lktwJLXgKwbrfmt_XSvNr/view?usp=sharing ER Diagram : https://drive.google.com/file/d/1z4Ran7BwJ6e5sSrQHUNCNAMOsINTIHft/view?usp=sharing

Design a News Feed

Your aim is to write a console program that can simulate a social network. Users have the following capabilities (command to be used in [ - ]): ● [signup] A user can signup to the system ● [login] A user will be able to login to the system and the session will be created and used across for the other commands. Any existing session will be reinitiated with the new user logins. ● [post] A user can post a feed item. ● [follow] Users can follow other users. ● [reply] A user can comment on another user's feed item. ● [upvote/downvote] Upvote or downvote posts. ● [shownewsfeed] Any user can read his news feed. News items are sorted based on the following (following options to sort feed by are available): Followed users: posts by followed users appear first. Score (= upvotes - downvotes): higher the better. The number of comments: higher the better. Timestamp: more recent the better. ● Allow users to comment on a comment and upvote/downvote a comment. ● Display time in language like 2m ago, 1 hr ago etc.

Input and output

The input should be taken in the form of commands input via the command line. The statements should consist of commands and arguments. Commands can include ‘signup’, ‘newsfeed’, ‘upvote’ etc. Arguments can vary depending on the commands.

Example - reply(feed_id, reply_text)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages