caption: String
+ createAt: Date
+ author: String
+ images:
[ { }
+_id: ObjectId
name: String
Comments
_id: ObjectId,
url: String,
+ description: String
caption: String
]
_id: ObjectId
username: String
text: String
+ comments: [{ObjectId}],
+ category: ObjectId
+ createAt: Date
Requirements:
- Using MongoDB Compass, create a database named "PE_Fall2024_B5". Create collections 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 some 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
Zoom