The backend part of the MobileMarket e-commerce
Template(HTML, CSS): https://github.com/Hasib192/MobileMarket-Template
Frontend(ReactJS): https://github.com/Hasib192/MobileMarket-Frontend
Backend(expressJS, nodeJS): https://github.com/Hasib192/MobileMarket-Backend
Clone the project
git clone https://github.com/Hasib192/MobileMarket-Backend.gitGo to the project directory
cd MobileMarket-BackendInstall dependencies
npm installStart the server
npm run dev POST /api/v1/registerCreates a new user account.
POST /api/v1/loginLogs in a user and returns a token.
POST /api/v1/product/createCreates a new product in the system.
GET /api/v1/product/listRetrieves a list of all products.
POST /api/v1/cart/addAdds an item to the user's cart. Requires authentication.
GET /api/v1/cart/listRetrieves all items in the user's cart. Requires authentication.
GET /api/v1/cart/remove/${id}Removes a specific item from the cart. Requires authentication.
| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of the cart item to remove |