Task 02 (5.0 marks) Create a REST API server to category collection, you must use JWT for authenticating API. The secret key of JWT must be SDN301M_PE_FA24_StudentCode.
Implement CRUD actions with category collection.
Validate input data to ensure it meets data integrity rules (e.g., format, type, range,unique) when creating or updating data through the API.
Task 03 (4.0 marks). Client application for product management
Student must choose one of template engines (EJS, HANDLEBARS, or PUG...) with Express for building the views
1. Authentication function
At the login view, the user must provide the username and password correctly (password will encrypted by berypt library and stored at user collection). All CRUD actions are required with authentication. In the case login unsuccessfully, display the messages which involve the errors.The data of user should store at user collection and come from user.json. After successful login will redirect to dashboard view.
2 Check if logging in successfully show the list of all producte
Close
+ 100%
Zoom