Lab7 report - scvnq/demo1 GitHub Wiki
Lab7
Students Information
Tiancheng Xie , ID:25
Chen Sun , ID:23
Goal
Creating a new CRUD operationfor Customers data with some fields like customer_id, customer_name, customer_email etc. Create rest api’s using nodejsfor adding a new customer, listing all the customers, updating a customer and deleting a customer.
Step1:
1.Create an account on mongo lab.
2.Create a cluster.
3.Create a collection.
4.Make sure my mongoDB already used currently ip .
Step2:
Create customer management system, and then connect my mongoDB.
Make customer schema:
Use Node.js route to complete CRUD operation(get, post, put, delete data)
Result
Home.page
Insert.page
List.page
The information just added we can saw it in mongoDB.
Conclusion:
Through this lab, we understand how to use MongoDB. We look forward to further study about this.