Deadline: 17/09/2022 - 8PM
- user can
login
,register
,get his data
, andlogout
. - use JWT as and authorization token.
- user should has only one token at atime.
- user model should have
email
,phone number
andname
. - validate user's
email
andphone number
as an Egyptian number.HINT: use regex.
- user can add, update, delete the product.
- product model should have
name
,slug
,price
,price string
(ex: 100 EGP) anddescription
. - each product should contain a list of images as a seperet model.
HINT: use one-to-many relationship.
- product MUST be soft deleted.
- user can order multiple products at atime.
- order model should have
products
,address
,total price
anddelivery date
. - user can view his order and delete it (soft deleted).
HINT: Create a shopping cart for every user and empty it when creating new order.