Skip to content

Michael's Instagram Challenge#917

Open
mcsuGH wants to merge 19 commits into
makersacademy:mainfrom
mcsuGH:main
Open

Michael's Instagram Challenge#917
mcsuGH wants to merge 19 commits into
makersacademy:mainfrom
mcsuGH:main

Conversation

@mcsuGH

@mcsuGH mcsuGH commented May 15, 2022

Copy link
Copy Markdown

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.

@JordanManu JordanManu left a comment

Copy link
Copy Markdown

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!

Comment thread README.md
- 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

Copy link
Copy Markdown

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

Comment thread controllers/posts.js
})
}
}

Copy link
Copy Markdown

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');

Copy link
Copy Markdown

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");
});

Copy link
Copy Markdown

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");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Comment thread spec/models/post.test.js
expect(err).toBeNull();

expect(posts[0].createdAt).toBeDefined();
done();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great tests!

Comment thread views/layout.hbs
{{/if}}
</div>
{{#if user}}
Hey {{user.email}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really like this feature

Comment thread views/posts/id.hbs
<input type="text" id="comment" name="comment" placeholder="write comment" required>
</div>
<div>
<button class ='createcomment'>Comment</button>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Real good

Comment thread views/posts/id.hbs
</div>
<br>
<form action = '/posts'>
<button class = "back">back</button>

Copy link
Copy Markdown

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

Comment thread views/sessions/new.hbs
@@ -0,0 +1,17 @@
{{#if user}}
You are already logged in.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants