Milestones
List view
- Set up Express.js backend with MongoDB and Mongoose - Install authentication dependencies bcryptjs, jsonwebtoken (JWT) and cors) - Create User Model with fields: - Username (unique) - Email (unique) - Password (hashed with bryptjs) - Role (User, admin, ...) - Implement Register API (POST / api/auth/register): - Validate user input - Hash password before saving - Return JWT token upon successful registration - Implement Login API (POST / api/auth/login): - Validate credentials. - Return JWT token if successful
Overdue by 1 year(s)•Due by March 28, 2025•4/4 issues closed