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.git
Go to the project directory
cd MobileMarket-Backend
Install dependencies
npm install
Start the server
npm run dev
POST /api/v1/register
Creates a new user account.
POST /api/v1/login
Logs in a user and returns a token.
POST /api/v1/product/create
Creates a new product in the system.
GET /api/v1/product/list
Retrieves a list of all products.
POST /api/v1/cart/add
Adds an item to the user's cart. Requires authentication.
GET /api/v1/cart/list
Retrieves 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 |