User Stories - nmount/unNamedRepo GitHub Wiki

Users

View SITE

  • As a recurring user OR a guest I want to be navigate through the site and see all the posts which would render on the main page.
    • As a recurring user OR a guest I want to be see all comments for all posts that have been written in DATE order.
      • I want to be able to navigate through the posts and comments.

Register

  • As a new and incoming user, I want to be able to register for the website using a form.
    • When I'm on the '/register' page:
      • I would like to be able to enter my username, email, password, location, profile picture and confirm password in a clear and easy-to-follow form.
      • Upon creating my new profile I would like to be logged in && like to able to see the /main-page with my username up top as a confirmation.
    • When I enter invalid data on the sign-up form:
      • I would like the website to inform me of the validations I failed to pass, and repopulate the form with my valid entries (except my password).

Logging in

  • As a recurring user, I want to be able to login for the website using a login form.
    • When I'm on the /main-page page:
      • I would like to be able to enter my email && password in a clear and easy to follow form (with a login button) on the top right.
      • Upon logging in I would like to be able to see the /main-page with my username up top as a confirmation.
    • When I enter invalid data on the login form:
      • I would like to see 'INCORRECT PASSWORD' if password doesn't match the email.
      • I would like to see 'INCORRECT EMAIL' if email doesn't exist.

Logging out

  • As a recurring user, I want to be able to log out from the website using logout button.
    • When logout button is clicked:
      • I would like to be able to be redirected to /log-in.

Guest User

  • As a GUEST user, I want to be able to view the website but NOT edit anything.
    • I will know that I am a Guest User because it will say WELCOME GUEST USER && the login as well as the signup options will be visible.
    • I will have a default location set up so that I may experience the site but only with viewing abilities.

Posts

Create Posts

  • As a recurring user I want to be able to create a post.
    • When I'm on my /new-post page on
      • I can click on a CREATE-POST button it that takes me to /main-page page where I can create a post using a form.
        • The form has title, picture, caption.
        • If I click SUBMIT POST button it takes me to '/main-page' to view all posts.
        • If I click CANCEL button it takes me to '/main-page' without saving changes.

View Posts

  • As a recurring user I want to be able to view my posts and all posts.
    • When I'm on my /main-page page
    • When I'm on my /${profile} page
      • I can ONLY view my posts.

Delete Posts

  • As a recurring user I want to be able to delete my post.
    • When I'm on my ${profile} or /main-page
      • I can click on a DELTE-POST button it prompts a modal to confirm the deletion.
        • If I click YES button it takes me to '/main-page' to view all posts with my post deleted.
        • If I click NO button it takes me to '/main-page' without saving changes.

Edit Posts

  • As a recurring user I want to be able to edit my post.
    • When I'm on my ${profile} or /main-page
      • I can click on a EDIT-POST which routs me to the new-post with everything filled in.
        • If I click SUBMIT CHANGES button it takes me to '/main-page' to view all posts with my post changed.
        • If I click CANCEL CHANGES button it takes me to '/main-page' without saving changes.

Comments

Create Comment

  • As a logged in user I want to be able to write a comment for a post.
    • When I'm on /main-page page
      • I can click on a COMMENT button on a Post it drops down a textarea
      • I can also click on a POST button which when I click adds the comment to the current post.

Create Comment

  • As a logged in user I want to be able to delete a comment for a post.
    • When I'm on /main-page page
      • I can click on a DELETE button on a Post if it is mine and delete it.

Edit Comment

  • As a logged in user I want to be able to edit a comment for a post.
    • When I'm on /main-page page
      • I can click on a EDIT button on a Post if it is mine and edit it.
        • If I click SUBMIT COMMENT button it updated the page with the comment.
        • If I click CANCEL button it restores the comment unedited.