Skip to content

DPI-JCB-appdev/photogram-final

 
 

Repository files navigation

Photogram Final

Look around the target and try to identify the new things, as compared to our previous version of Photogram.

Refer to the chapter for hints along the way.

Specs

Click here to see names of each test
  • /users lists the usernames of all users
  • /users lists the private status of all users (Yes/No)
  • /users has an additional column for follow/unfollow when signed in.
  • /users hides column for follow/unfollow when signed out.
  • /users shows a 'Follow' button next to a user when you haven't sent a follow request
  • /users shows an 'Unfollow' link next to a user when you have sent a follow request and it was accepted
  • /users shows 'Request sent' and 'Cancel' link when you have sent a follow request and it's pending
  • /users shows nothing when you have sent a follow request and it was rejected
  • /users/[USERNAME]/feed has the photos posted by the people the user is following
  • /users/[USERNAME]/liked_photos has the photos the user has liked
  • /users/[USERNAME]/discover has the photos that are liked by the people the user is following
  • /users/[USERNAME] has a link with the text of the username of the signed in user
  • /users/[USERNAME] displays the value of the private column for the related User record
  • /users/[USERNAME] displays the follower count for the related User record
  • /users/[USERNAME] displays the number of users that the User is following
  • /users/[USERNAME] displays the number of Photos that the related User has added
  • /users/[USERNAME] displays each of the Photos that the related User has added in tags
  • /users/[USERNAME] has a link to the details page for each of the Photos that the related User has added
  • /users/[USERNAME] displays the caption for each of the Photos that the related User has added
  • /users/[USERNAME] displays the likes count for each of the Photos that the related User has added
  • /users/[USERNAME] displays the posted time for each of the Photos that the related User has added
  • /users/[USERNAME] has a link to the User's feed
  • /users/[USERNAME] has a link to the User's liked photos
  • /users/[USERNAME] has a link to the User's discover
  • /users/[USERNAME] has a 'Follow' button when the details page does not belong to the current user
  • /users/[USERNAME] has a 'Unfollow' link when the details page does not belong to the current user and the user is following
  • /users/[USERNAME] has form to edit the User when you are the user
  • /users/[USERNAME] does not have form to edit the User when you are not the user
  • /users/[USERNAME] has the usernames of the user's pending follow requests
  • /users/[USERNAME] has the photos posted by the user
  • /photos shows photos added by non-private users
  • /photos has a form element
  • /photos has a label element with text 'Image'
  • /photos has a label element with text 'Caption'
  • /photos has a button element with text 'Add photo'
  • /photos has a form to add a new Photo if signed in
  • /photos/[ID] displays the image of the Photo in an element
  • /photos/[ID] - Delete this photo link displays 'Delete this photo' link when photo belongs to current user
  • /photos/[ID] displays the caption of the Photo
  • /photos/[ID] displays the username of the User who added the Photo
  • /photos/[ID] displays the count of comments for the Photo
  • /photos/[ID] displays the posted time of the Photo
  • /photos/[ID] displays all the comments on the photo
  • /photos/[ID] displays the usernames of the Users who commented on the photo
  • /photos/[ID] - Delete this photo button displays Delete this photo button when photo belongs to current user
  • /photos/[ID] - Update photo form displays Update photo form when photo belongs to current user
  • /photos/[ID] - Like Form automatically populates photo_id and fan_id with current photo and signed in user
  • /photos/[ID] - Unlike link automatically associates like with signed in user
  • /photos/[ID] — Add comment form automatically associates comment with signed in user and current photo
  • The home page has a link to /users
  • The home page has a link to /photos
  • The home page has a link to /user_sign_in when no user is signed in
  • The home page has a link to /user_sign_up when no user is signed in
  • The home page has a link to /user_sign_out when user is signed in
  • /edit_user_profile can update the signed in user
  • The home page has a notice when you sign in successfully
  • The home page has a notice when you signed out successfully
  • The home page has a notice when you add a Photo successfully
  • The home page has a notice when you Like a Photo successfully
  • The home page has an alert when you Unlike a Photo
  • The home page has an alert when you try to visit a page you're not allowed to.
  • User has a class defined in app/models/
  • User has an underlying table
  • Photo has a class defined in app/models/
  • Photo has an underlying table
  • Comment has a class defined in app/models/
  • Comment has an underlying table
  • Like has a class defined in app/models/
  • Like has an underlying table
  • FollowRequest has a class defined in app/models/
  • FollowRequest has an underlying table
  • User has an column called 'username' of type 'string'
  • User has an column called 'email' of type 'string'
  • User has an column called 'password_digest' of type 'string'
  • User has an column called 'comments_count' of type 'integer'
  • User has an column called 'likes_count' of type 'integer'
  • User has an column called 'private' of type 'boolean'
  • Photo has an column called 'caption' of type 'text'
  • Photo has an column called 'comments_count' of type 'integer'
  • Photo has an column called 'likes_count' of type 'integer'
  • Photo has an column called 'owner_id' of type 'integer'
  • Photo has an column called 'image' of type 'string'
  • Comment has an column called 'author_id' of type 'integer'
  • Comment has an column called 'photo_id' of type 'integer'
  • Comment has an column called 'body' of type 'text'
  • Like has an column called 'photo_id' of type 'integer'
  • Like has an column called 'fan_id' of type 'integer'
  • FollowRequest has an column called 'sender_id' of type 'integer'
  • FollowRequest has an column called 'recipient_id' of type 'integer'
  • FollowRequest has an column called 'status' of type 'string'
  • About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages

    • Ruby 98.5%
    • HTML 0.7%
    • Dockerfile 0.7%
    • CSS 0.1%
    • Shell 0.0%
    • JavaScript 0.0%