Test Description: Node.js Backend Functionality with Key Libraries This test focuses on the creation and management of a secure Node.js backend using Express.js, along with several essential middleware and libraries. The primary goal is to assess the server's ability to handle user authentication, rate limiting, and data security. Including: Express.js, Rate Limiting (express-rate-limit), JSON Web Tokens (JWT), Backend Authentication and Password Hashing
Example Question:
POST /register
username
, password
, and email
.POST /login
username
and password
.GET /profile
GET /admin
admin
should access this.GET /logout
express
: For setting up the server and routes.jsonwebtoken
: For generating and verifying JSON Web Tokens.bcryptjs
: For hashing user passwords.cookie-parser
: For parsing cookies from requests.