Git Product home page Git Product logo

inventory-management-starter's Introduction

Inventory Management System

This is a simple inventory management system written in Python using Flask.

Requirements

  • Python 3.x
  • Flask

Setup

  1. Clone the repository.

  2. Navigate to the project directory.

  3. Create a virtual environment and activate it:

    pip install virtualenv
    virtualenv venv
    • Windows:

      venv\Scripts\activate

      For Windows, if this is your first time running the script, you might get an error like below:

      venv\Scripts\activate : File C:\flask_project\venv\Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
      At line:1 char:1
      + venv\Scripts\activate
         + FullyQualifiedErrorId : UnauthorizedAccess

      This means that you don’t have access to execute the scripts.

      To solve this error, run PowerShell as admin. When you right-click on the PowerShell icon, choose the option ‘Run as administrator’. Now, PowerShell will open in admin mode.

      Type the following command in Shell:

      set-executionpolicy remotesigned
    • Linux:

      source ./venv/bin/activate
  4. Install the requirements:

    pip install flask
    pip install db-sqlite3
  5. Run the application:

    flask --app main run

Endpoints

  • Add Item: POST /items
  • View Items: GET /items
  • Update Item: PUT /items/<id>
  • Delete Item: DELETE /items/<id>

Data Format

Add/Update Item

{
  "name": "Item Name",
  "quantity": 10,
  "price": 19.99
}

inventory-management-starter's People

Contributors

sumitwarrior7 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.