SDN302_-_SP_2025_-_PE_3487.webp
xin_chao

SDN302_-_SP_2025_-_PE_3487.webp

  • Media owner xin_chao
  • Ngày thêm
✓ Kizspy.me
Zoom
us{ type: String, required: true},
pa{ type: String, required: true},
},{timestamps: true, });
Task 01 (1.0 mark). Using the Express generator for developing the REST API server, creating
related models, then migrating to a database named SDN302_PE_SP25_StudentCode (MongoDB).
Task 02 (5.0 marks) Create a REST API server to the model collection, you must use JWT for
authenticating API. The secret key of JWT must be your StudentCode@ (Ex.: se171234@) and
store 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)
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
SDN302
Thêm bởi
xin_chao
Ngày thêm
Lượt xem
2,107
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom