+ caption: String
+ createAt: Date
+ author: String
+ images:
[
+_id: ObjectId
{
+ name: String
+ description: String
Comments
_id: ObjectId,
url: String,
caption: String
+_id: ObjectId
+ username: String
+ comments: [{ObjectId}],
+ text: String
+ category: ObjectId
[
+ createAt: Date
}
Requirements:
Using MongoDB Compass, create a database named "PE_Fall2024_B5". Create collection corresponding to the data in the given directory. Then, import data into the collections created in the database.
PE_Fall2024_B5
Categories
Comments
Images
Tutorials
+
Question 1. (5 points)
In this question, you are asked to write an application (back-end given folder), that provide sc API to manage: Categories, Tutorials and Comments.
Note - Scored 0 points if:
Not using database connection string in the .env file
Not configuring the root path of API Web App at:
http://localhost: 9999