Giter VIP home page Giter VIP logo

e-commerce-api's Introduction

Ecommerce-API

API for an ecommerce platform allows admin to manage product inventory.The E-commerce API is built using Node.js, Express.js, and MongoDB, providing functionality for the admin to manage their product inventory. The API allows for viewing the inventory, creating new products, deleting existing products, and updating the quantity of products.

Tech Stack

  • Node.js: A JavaScript runtime environment that allows running JavaScript on the server-side.
  • Express.js: A web application framework for Node.js, used for handling server-side logic and creating RESTful APIs.
  • MongoDB Atlas: A cloud-based-NoSQL database used for storing and retrieving product inventory data.
  • Postman API.

Project Usage Instructions

  1. Install nodejs.
  2. Inside main directory -> npm install.
  3. To start project -> npm start.
  4. Project will now be running on port 3000.

Functionality

View Inventory: The API provides endpoints to retrieve the product inventory, allowing the admin to view all the products currently available.

Create Products: The API includes endpoints for creating new products in the inventory. The admin can provide details such as product name, description, price, and quantity.

Delete Product: The API provides an endpoint to delete a specific product from the inventory based on its unique identifier.

Update Product: The API allows the admin to update the quantity of a product in the inventory. The admin can specify the product ID and the new quantity to update the stock.

API URL's

  1. Create a product //POST http://localhost:3000/products/create

  2. Get all products //GET http://localhost:3000/products

  3. Delete a product //DELETE http://localhost:3000/products/3

  4. Update a product //PATCH http://localhost:3000/products/3/update_quantity/?number=5

e-commerce-api's People

Contributors

raghabendra-dash avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.