You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to create a user management system for our API. The tasks include creating a user model, implementing necessary routes, and adding authentication middleware. This will enable the API to handle user-related operations such as creation, retrieval, updating, deletion, login, logout, and password recovery.
Tasks:
Create User Model
Fields:
id (unique identifier)
name
email
password
phone number
cart (array or object to store cart items)
wishlist (array or object to store wishlist items)
addresses (array of address objects)
createdAt (timestamp)
updatedAt (timestamp)
NOTE: This schema might go through some modifications in the future. This is not the final schema.
Description:
We need to create a user management system for our API. The tasks include creating a user model, implementing necessary routes, and adding authentication middleware. This will enable the API to handle user-related operations such as creation, retrieval, updating, deletion, login, logout, and password recovery.
Tasks:
Create User Model
id
(unique identifier)name
email
password
phone number
cart
(array or object to store cart items)wishlist
(array or object to store wishlist items)addresses
(array of address objects)createdAt
(timestamp)updatedAt
(timestamp)Add Routes
/api/user/
GET
/api/user/:id
GET
/api/user/
POST
/api/user/:id
PUT
/api/user/:id
DELETE
/api/user/login
POST
/api/user/logout
POST
/api/user/forgot-password
POST
Add Authentication Middleware
updateByID
deleteByID
logout
Steps to Follow Before Starting the Work:
dev
branch:Checklist:
GET /api/user/
routeGET /api/user/:id
routePOST /api/user/
routePUT /api/user/:id
routeDELETE /api/user/:id
routePOST /api/user/login
routePOST /api/user/logout
routePOST /api/user/forgot-password
routeupdateByID
,deleteByID
, andlogout
routes.env.sample
file if you have updated any env variablesInstructions to Raise a Pull Request:
dev
branch.The text was updated successfully, but these errors were encountered: