Skip to content

added post commenting feature and minor stying#646

Open
roman-vasi1enko wants to merge 1 commit into100devs:mainfrom
roman-vasi1enko:feature-comments
Open

added post commenting feature and minor stying#646
roman-vasi1enko wants to merge 1 commit into100devs:mainfrom
roman-vasi1enko:feature-comments

Conversation

@roman-vasi1enko
Copy link
Copy Markdown

The post pages now have a feature to add new comments by any user and display them (including author name, date, and comment text).

Completed steps:

  1. monoose Comment schema
  2. new comments.js route to handle createComment requests
  3. updated posts.js controllers to include comments data from DB as a res to GET req on page load
  4. updated post.js EJS template to display the form and all existing comments on a requested post
  5. applied Bootstrap CSS to style the post.js template

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.

1 participant