-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Michael's Instagram Challenge #917
base: main
Are you sure you want to change the base?
Conversation
…er files and routes
… urls uploaded elsewhere for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great project! It works really well, I love the comment feature that displays who commented and the time it was posted. Edge cases were covered and great test coverage!
- add more CSS - currently only added a bar at the top and a background for the post images, displaying the images in rows of 3. | ||
- make it so each user can only like a post once (would just need to create a new collection for likes inside database with foreign keys for the post and the user who liked the post) | ||
- add filter function | ||
- add the ability to upload images onto the database rather than using a external image host |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great readme instructions, very easy to follow
}) | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all v nice!
cy.get(".createpost").click(); | ||
|
||
cy.url().should("include", "/posts"); | ||
cy.get('div[class="posts"]').find(".postimage").should('be.visible'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this test!
|
||
cy.url().should("include", "/sessions"); | ||
cy.should("not.contain", "Hey someone3@example.com"); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good test
cy.get("#password").type("password"); | ||
cy.get("#submit").click(); | ||
|
||
cy.contains("Email already in use"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
expect(err).toBeNull(); | ||
|
||
expect(posts[0].createdAt).toBeDefined(); | ||
done(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great tests!
{{/if}} | ||
</div> | ||
{{#if user}} | ||
Hey {{user.email}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really like this feature
<input type="text" id="comment" name="comment" placeholder="write comment" required> | ||
</div> | ||
<div> | ||
<button class ='createcomment'>Comment</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Real good
</div> | ||
<br> | ||
<form action = '/posts'> | ||
<button class = "back">back</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the back button
@@ -0,0 +1,17 @@ | |||
{{#if user}} | |||
You are already logged in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
Implemented most of the functionality (can make post, comment on posts, like on posts). Users can sign in and sign out and conditionals are used to show content depending on whether or not the user is signed in or not (for example, if you are signed in, the Sign In button at the navigation bar becomes a Log Out, or if you are already logged in and you go to the Login Page it will tell you you are already logged in.)
Will need to add functionality to upload images to database (currently only allows URL of external image hosts like imgur) and still need to add more CSS to make it look nicer.