"Simple Inventory Management System powered by Flask"
Clone the git repository:
$ git clone https://github.com/gavindsouza/inventory-management-system.git
$ cd inventory-management-system
Create a virtual environment and install necessary dependencies:
$ python3 -m venv venv
$ source ./venv/bin/activate
$ pip install -U pip -e .
The index page or summary covers the summary of the system containing lists of products and location along with a count of unallocated products. On the products page, we can add/edit/remove products from the system. The location page covers similar functionality in the context of locations or warehouses. On the logistics page, movement of products can be performed. It also maintains the history of all transactions in a tabular form.
To try out the application, run the following from the cloned directory:
$ flask --app inventory.app run --debug
The application can be accessed at localhost:5000 in your browser
This view of the system can be accessed for demo purposes on installation, to start afresh remove thr inventory.sqlite file from the parent folder
A new system will look like this
To add products, only the name and quantity are required Adding locations needs only the name to be added
Products can be moved into and between warehouses only after they have been added to the system
Moving into locations
Moving between locations
Editing Product Information
Editing Location Information
Deleting Products and Locations on the System
You may want to maintain your database file in a separate location (by setting DATABASE_NAME
environment variable) and back that up periodically. Considering gunicorn
for this setup, equivalent command may look something like:
$ DATABASE_NAME=/home/user/inventory.sqlite gunicorn -w 4 inventory.app:app
Checkout Flask's production deployment guide for more information.
- Just Flask!
This code has been released under the MIT License.