Zoom
Kizspy. meore to the .env file.
Implement CRUD actions with model collection.
Validate input data to ensure it meets data integrity rules (e.g., format, type, range, unique)
when creating, deleting or updating data through the API.
Task 03 (4.0 marks). Client application for device 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, members must enter their username and password correctly (encrypted with
bcrypt and stored in the 'users' collection). All CRUD actions require authentication. Display error
messages for failed logins. Store user data in the 'users' collection from 'user.json'. Redirect to the
dashboard view after a successful login
2. Check if logging in successfully, show the list of all devices (using the card view not table view)
www
+100%
Close