Skip to content
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

MVP #51

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open

MVP #51

wants to merge 45 commits into from

Conversation

edmundtck
Copy link

Deliverable Submission

Please describe your comfort and completeness levels before submitting.

Comfort Level (1-5):

Completeness Level (1-5):

What did you think of this deliverable?:


// =============== middleware ===============
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
Copy link
Contributor

Choose a reason for hiding this comment

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

why ejs?

photo: String,
location: String,
date: String,
like: [String],
Copy link
Contributor

@primaulia primaulia Jan 11, 2018

Choose a reason for hiding this comment

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

So i can like multiple times for the same review?

date: String,
like: [String],
comments: [{
username: String,
Copy link
Contributor

Choose a reason for hiding this comment

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

You should reference the comment to an actual user model

return done(null, false, { message: 'Incorrect username' });
}

bcrypt.compare(password, user.password, function(err, isMatch) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any specific reasons why you compare it here instead of doing it in the model instead?

profilePic: helper.randomProfile()
});

bcrypt.hash(newUser.password, saltRounds, function(err, hash) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why you didn't put this in model instead?

url: $(this).attr('href'),
type: 'DELETE',
success: function(data) {
console.log(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

clear all of your console.log once you're done with it

@@ -0,0 +1,23 @@
<!DOCTYPE html>
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this file for?

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.

None yet

2 participants