Lab6 report - scvnq/demo1 GitHub Wiki

Lab6

Students Information

Tiancheng Xie , ID:25

Chen Sun , ID:23

Goal

Use Express to create methods for adding a new customer, listing all the customers, updating a customer and deleting a customer.

We use fs, yargs & lodash npm packages, create app.js as explained here

Consists of a name & id.

add a new note, list notes, read a note, delete a note

Create a json file named "customer-data.json"to store date for you added.

Result: add a new customer

list the customers that you have added

select a customer to read by id

remove a customer by name

Conclusion

This lab enables us to have a good understanding and contact about how to use express