Skip to content

Conversation

@JackGer26
Copy link

Features added:

  • Created Comment model with user and post references
  • Added comments controller with createComment method
  • Updated posts controller to fetch and display comments with user info
  • Added comment form and display section to post.ejs view
  • Created comments routes with authentication middleware
  • Updated server.js to include comment routes

Technical improvements:

  • Updated Mongoose to v8.19.2 for better compatibility
  • Modernized database config by removing deprecated options
  • Converted auth controller callbacks to async/await
  • Updated Passport config to use async/await instead of callbacks

The comments system allows authenticated users to add comments to posts, displays comments with username and timestamp, and maintains proper data relationships between users, posts, and comments.

Features added:
- Created Comment model with user and post references
- Added comments controller with createComment method
- Updated posts controller to fetch and display comments with user info
- Added comment form and display section to post.ejs view
- Created comments routes with authentication middleware
- Updated server.js to include comment routes

Technical improvements:
- Updated Mongoose to v8.19.2 for better compatibility
- Modernized database config by removing deprecated options
- Converted auth controller callbacks to async/await
- Updated Passport config to use async/await instead of callbacks

The comments system allows authenticated users to add comments to posts,
displays comments with username and timestamp, and maintains proper
data relationships between users, posts, and comments.
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