Skip to content

Instantly share code, notes, and snippets.

@d11z
Created October 22, 2018 21:08
Show Gist options
  • Save d11z/737bbd3a92783fee8ce70e4d64f83e07 to your computer and use it in GitHub Desktop.
Save d11z/737bbd3a92783fee8ce70e4d64f83e07 to your computer and use it in GitHub Desktop.

Reddit clone

User stories

  • As a user, I should be able to sign up
  • As a user, I should be able to log in
  • As a user, I should be able to view popular posts from all sub-reddits
  • As a user, I should be able to view popular posts from a single sub-reddit
  • As a user, I should be able to create a post to a particular sub-reddit
  • As a user, I should be able to vote a post up or down
  • As a user, I should be able to leave a comment on a post
  • As a user, I should be able to view comments on a particular post
  • As a user, I should be able to vote a comment up or down

Screens

  • Screen for signing up
  • Screen for logging in
  • Screen for viewing posts
  • Screen for creating posts
  • Screen for viewing comments
  • Screen for leaving comments

User flows

Sign up

User enters valid username and password -> Home page
User enters username that is taken -> Error message
User enters invalid username or password -> Error message

Log in

User enters valid username and password -> Home page
User enters incorrect password -> Error message
User enters nonexistent username -> Error message
User clicks sign up button -> Sign up page

View posts

User clicks a post's title -> Open post link
User clicks a post's comments button -> Open post comments
User clicks up or down vote button -> Cast vote on post
User clicks create post button -> Create post

Create post

User enters a valid title and URL -> Open post comments
User enters an invalid title or URL -> Error message

View comments

User clicks reply button on post -> Create comment on post
User clicks reply button on comment -> Create comment on comment thread
User clicks up or down vote button -> Cast vote on comment

Create comment

User enters valid comment -> View comments
User enters invalid comment -> Error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment