This repository contains the backend code for an e-commerce website. The backend is built using the MangoDB database to store and manage the website's data.
These instructions will help you set up the project on your local machine for development and testing purposes.
- Node.js
- MangoDB
- Clone the repository:
git clone https://github.com/NtapeKnoxSiwale/e-commerce-backend.git
- Install the dependencies:
yarn install
- Start the backend server:
yarn run dev
- Start the frontend server:
yarn start
The following API endpoints are available
/api/v2/products
: Returns a list of all products/api/v2/product/new
: Enter a new product/api/v2/product/review
: Return the product review/api/v2/product/:id
: Returns a single product with the specifiedid
/api/orders
: Returns a list of all orders/api/orders/:id
: Returns a single order with the specifiedid
api/v2/order/new
: Create an order
- Node.js
- MongoDB
Contributions are welcome!