Code Monkey home page Code Monkey logo

inventory_system's Introduction

Inventory System

Build a Simple Inventory Management System API

Requirement

Using the CRUD HTTP API over a local MongoDB instance as your database back-end, build a logging API for supermarket purchase receipts that has the following functionality:

Prerequisites

  1. Node js
  2. Postman To test the endpoints
  3. Any text Editor
  4. Git
  5. Local MongoDB instance

Installing

Clone this project

npm install
npm start

make your environment variable .env file Fill in this data for mongodb

server=
database=

Test

No test for now

Features

  • Ability to log purchase receipts
  • Ability to query DB for total sales in a given month
  • Ability to query DB for complete product list
  • Ability to add/modify/delete products
  • Ability to query DB for monthly sales by product

API Routes

HTTP verb Routes Description
GET /api/v1/products Get all products
POST /api/v1/products/add add a product - params [name, amount]
DELETE /api/v1/products/:id Delete a specific product by id
PUT /api/v1/products/:id Update a particular product [name, amount]
POST /api/v1/purchase/:id Purchase a product and get receipt [quantity]
GET /api/v1/total Get total sale in a month [takes a query params month]
GET /api/v1/month get monthly sale by product [takes a query param product]

inventory_system's People

Contributors

danielshow avatar dependabot[bot] 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.