The Product Inventory Management System is a web application designed to help businesses manage their product inventory efficiently. It provides a user-friendly interface for searching products, managing stock levels, and processing purchases.
- Product Search: Easily search for products by name or description.
- Buy Products: Purchase products and update inventory quantities.
- Inventory Management: Track and manage product details, quantities, and categories.
- User Authentication: Secure login system for users.
- Frontend: HTML, CSS, JavaScript, Bootstrap
- Backend: Flask
- Database: MySQL
- Other: jQuery, AJAX
Follow these steps to set up the project on your local machine:
-
Clone the repository:
git clone https://github.com/AlgoArchives/Product-Inventory-Management-System.git cd Product-Inventory-Management-System
-
Set up the virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install backend dependencies:
pip install -r requirements.txt
-
Set up the database:
- Create a MySQL database.
- Import the database schema provided in the
main.sql
file:mysql -u your_username -p your_database_name < main.sql
-
Configure the backend:
- Update the database configuration in
app.py
anddb_connection.py
with your database credentials:connection = mysql.connector.connect( host='localhost', user='your_username', password='your_password', database='inventory_db' )
- Update the database configuration in
-
Run the application:
python app.py
-
Access the application: Open your browser and navigate to
http://localhost:5000
.
- Search Products: Use the search bar to find products by name or description.
- Buy Products: Click the "Buy" button on a product card, fill in the quantity, and confirm the purchase.
- Manage Inventory: Use the provided stored procedures to add, update, or delete products in the database.
This project is licensed under the MIT License - see the LICENSE file for details.