-
Notifications
You must be signed in to change notification settings - Fork 60
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
base: master
Are you sure you want to change the base?
MVP #51
Conversation
|
||
// =============== middleware =============== | ||
app.set('views', path.join(__dirname, 'views')); | ||
app.set('view engine', 'ejs'); |
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.
why ejs
?
photo: String, | ||
location: String, | ||
date: String, | ||
like: [String], |
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.
So i can like multiple times for the same review?
date: String, | ||
like: [String], | ||
comments: [{ | ||
username: String, |
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.
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) { |
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.
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) { |
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.
Any reason why you didn't put this in model instead?
public/js/main.js
Outdated
url: $(this).attr('href'), | ||
type: 'DELETE', | ||
success: function(data) { | ||
console.log(data); |
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.
clear all of your console.log
once you're done with it
@@ -0,0 +1,23 @@ | |||
<!DOCTYPE html> |
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.
What's this file for?
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?: