Before running the project, make sure you have the following installed:
- Node.js: Install Node.js
- MongoDB: Ensure MongoDB is running locally, and the
ecommerce
database is created. Install MongoDB
-
Clone the repository:
git clone https://github.com/SuganDevp/E-com_api.git cd E-com_api
-
Install dependencies:
npm install
-
Environment Variables:
.env
file is included in the root of the project for the localhost. -
Run the development server:
npm start
The backend API will be available at
http://localhost:30001
.