Add Categories Feature for Enhanced Blog Organization Feature #228
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a significant enhancement to the blog application by implementing a comprehensive categories feature. The primary goal is to improve content organization and facilitate easier navigation for users.
Key Changes:
Category Model: A new Category model has been established, ensuring that each category is unique and mandatory. This lays the foundation for better content classification.
Blog Routes: The existing blog routes have been updated to support category selection during the creation of new blog posts. Users can now filter blogs based on their chosen categories, making it simpler to find relevant content.
User Interface Updates: EJS templates have been modified to display the associated category with each blog post. The blog creation form now includes a dropdown for selecting categories, enhancing the user experience.
Testing: All new functionalities have been thoroughly tested to ensure they work seamlessly. Users can easily create blogs with categories and filter posts effectively.





