Skip to content

Rdx-coder/Ecommers-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Clone the project repository.
  2. Install Node.js and MongoDB on your system.
  3. Open the project folder in your preferred code editor.
  4. Run npm install to install the dependencies.
  5. Start your local MongoDB server.
  6. Modify the MongoDB connection string in server.js if necessary.
  7. Run node server.js to start the server.
  8. Use Postman to test the API endpoints mentioned in the task description.

Ecommerce API

This is a simple API for managing product inventory in an ecommerce platform. It is built using Node.js and MongoDB.

Features

  • Add products to the database
  • List products
  • Delete products
  • Update product quantity

Tech Stack

  • Node.js
  • MongoDB

Getting Started

  1. Clone the repository:

git clone https://github.com/Rdx-coder/Ecommers-API.git"

  1. Install dependencies:

cd ecommerce-api npm install

  1. Set up MongoDB:

    • Make sure you have MongoDB installed and running on your local machine or provide the connection string for a remote MongoDB server in the .env file.
  2. Start the server: npm start

  3. Use Postman or any other HTTP client to test the API endpoints.

Folder Structure

  • models/ # Database models
  • controllers/ # API controllers
  • routes/ # API routes
  • views/ # EJS views
  • public/ # Static files (CSS, images, etc.)
  • styles.css # CSS styles for the views
  • server.js # Server entry point

License This project is licensed under the MIT License. Feel free to use and modify it according to your needs.

You can modify this template according to your specific project requirements and provide additional information or instructions as needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors