首页 > 其他分享 >COMP229 – Web Application Development

COMP229 – Web Application Development

时间:2024-11-16 20:18:23浏览次数:1  
标签:Development APIs MongoDB Express REST Application COMP229 your

COMP229  Web Application Development

 Assignment 2

 Overview: Create the Node.js Express exports REST APIs that interacts with MongoDB Database using Mongoose ODM for an Online Market application (Note: The Front-end of the application is not included in this Assignment).Instructions :The Online Market Application:

Online Market Application – Node.js, Express REST APIs & MongoDBDue Week #10 (……………………….) @ midnightValue 10%Dress Store – Node.js, Express REST APIs & MongoDB Maximum Mark: 100

  1. Using MongoDB database, create:(25 Marks):
    1. A database by name Marketplace – You can use the existing database created in-class already if specified by your instructor.
    2. Create the following collections with their respective property. (5 Marks: Functionality).
  2. producname: strindescription: stringprice: numberquantity: numbercategory: string
  1. categoriename: stringthe dai 写COMP229 – Web Application Development categories of products to be included are Men, Women, teens. – OR categories specified by your instructObtain your connection string ( url or uri)
  1. Provide the screen snapshot of your MongoDB database showing the above steps from 1a – Using Visual studio code as the IDE: (25 Marks)
    1. create a node.js App for the Marketplace by setting up the Express web server. Ensure to install all the necessary modules: express, mongoose, cors e.t.c.
    2. Run the app and provide a screen snapshot of it running in the browser as followAfter creating the Express web server next: (30 Marks)
    1. Add the configuration for the MongoDB database.
    2. Create the product model with Mongoose.
    3. Write the controller.
    4. Define the routes for handling all CRUD operatioBelow is an overview of the REST APIs that will be exported:

a) Test the REST APIs using Postman, Thunder client or any tool you are familiar with. e.t.c.

b) Provide the screen snapshot of the test. (5Marks)

 a) Develop ejs file, and implement the Action: get all products in the webpage(15Marks)

SUBMITTING YOUR WORKYour submission should include:

  1. Azip archive of your Marketplace Project files
  2. Alink to GitHub
  3. A word doc. Showing the snapshotsThis assignment is weighted 10% of your total mark for this course. Late submissions:10% deducted for each day late.

 

标签:Development,APIs,MongoDB,Express,REST,Application,COMP229,your
From: https://www.cnblogs.com/comp9021T2/p/18549186

相关文章