Skip to content

itsteatv/mern-ecommerce

Repository files navigation

eCommerce API

Simple Express-based API for an eCommerce application.

Getting Started

Prerequisites

Before running the application, make sure you have the following installed:

  • Node.js
  • npm
  • MongoDB (and have it running)

Installation

  1. Clone the repository
git clone https://github.com/amirhosseinforouhar/ecommerce-api.git
cd ecommerce-api
  1. Install dependencies
npm install
  1. Create a .env file in the root directory and set the following environment variables
PORT=5000
MONGO_CONNECTION_URI=yourConnectionURI
SECRET_KEY=yourSecretKey
  1. Run the application
npm start

Endpoints

  • GET /api/v1/products?company=marcos&search=chair&sort=name&fields=name price
  • GET /api/v1/products/:id

About

mern stack ecommerce built with ReactJs & NodeJs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published