Open niki4810 opened 9 years ago
:+1: nice work. The goal of this assignment was to learn how to implement local authentication, interact with a data store, and render a webUI. In addition, you explored using middleware to facilitate common HTTP functionality. Over the next few weeks, we'll be focusing on more complex integrations and realtime functionality that we find in modern APIs and web apps.
Here's a checklist of things that I'm looking for in this project. You should review the checklist, and make any changes to your project, if necessary.
module.exports
. Your modules should reveal the minimum interface and only expose things that must be used by other modules.*Sync
calls anywhere in your code, and no require
calls except at the top of each module file."dependencies"
. When installing dependencies, use the --save
option: npm install --save somepackage
.req
or res
into a reusable composable middleware: (req, res, next)=>{}
.isLoggedIn
or equivalent route middleware: app.post('/post/:postId', isLoggedIn, ...)
My app is complete. //cc @codepathreview @codepath
Time spent: ~16hrs
Submission checklist ✅ User can Signup, Login and Logout with input validation ✅ Session and user accounts are persisted in a data store ✅ User can create and edit a blog post ✅ User can view blog posts with details on their Profile ✅ User can comments on their blog posts on their Profile ✅ User can view a anyone's blog with posts and comments at the specified url ✅ Logged In users can comment on any blog post
Optional: ✅ User's passwords are secured additionally with a blacklist, salt and pepper
Thanks, Nikhilesh