Functional Requirements
- Authentication and Authorization
- Users can register and log in using email and password.
- Authentication is implemented using JWT (access and refresh tokens).
- Endpoints:
- POST /api/auth/register
- POST /api/auth/login
- POST /api/auth/refresh
- Middleware protects secured routes.
- Role-Based Access Control (RBAC) is supported: Buyer, Seller, Administrator.
2.User Profile
- Users can:
- View and edit personal information.
- Change or reset their password.
- Manage delivery addresses.
- View order history.
3.Product Catalog
- Displays all products with support for:
- Search.
- Filtering (by category, price).
- Sorting (price).
- Product detail page includes:
- Images, descriptions.
- Customer reviews and ratings.
4.Product Management (for Sellers)
- Sellers can create, edit, and delete their products.
- Upload images, write descriptions, set prices and quantities.
5.Shopping Cart