Skip to content

Hasib192/MobileMarket-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

The backend part of the MobileMarket e-commerce

Important Links

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

Run Locally

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

API Reference

User API

Register a New User

  POST /api/v1/register

Creates a new user account.

User Login

  POST /api/v1/login

Logs in a user and returns a token.

Product API

Create a New Product

  POST /api/v1/product/create

Creates a new product in the system.

Get All Products

  GET /api/v1/product/list

Retrieves a list of all products.


Cart API

Add an Item to the Cart

  POST /api/v1/cart/add

Adds an item to the user's cart. Requires authentication.

Get All Cart Items

  GET /api/v1/cart/list

Retrieves all items in the user's cart. Requires authentication.

Remove an Item from the Cart

  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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published