Skip to content

devtosxn/inventory-mgt-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inventory Management System API

Black Code Style

This is a simple inventory management system API built with Flask and Flask-RESTful. It allows users to create, delete, update and retrieve products. It also allows users to add products to cart and purchase products.

Key Features

  1. Product creation, deletion, update and retrieval.
  2. Adding product to cart and purchasing product
  3. Keeping track of product quantity in regards to purchase or add to cart functions, i.e the product quantity should reduce when a purchase is made, or when it is added to the "user's" cart; users should be informed when a product is "out of stock"
  4. Products should have (name, category, labels(e.g size, colour etc), quantity, price) A product can have one or more labels.

Technologies

  • Python 3.10: Base programming language for development
  • Flask: Web framework for development
  • Flask-RESTful: Provides API development tools for easy API development
  • MongoDB: NoSQL database for development, staging and production environments
  • PyMongo: Popular Python driver used for interacting with MongoDB databases
  • Docker Engine and Docker Compose : Containerization of the application and services orchestration

Testing

Two user accounts have been created for testing purposes. The details are as follows:

  • John Doe

  • Jane Doe

  • The API documentation is available on https://documenter.getpostman.com/view/15948667/2s9YeEcXbX on your browser.

How To Start App

  • Clone the Repository

  • create a .env file with the variables in the env.sample file

    • cp env.sample .env
    • Update MONGO_DB_URI in .env with yours so that the application can connect to the database
  • Run make build

    • Running the above command for the first time will download all docker-images and third party packages needed for the app.
    • NB: This will take a few minutes for the first build
  • Run make up

  • Run make down to stop the servers

  • Other commands can be found in the Makefile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published