The Stock Management System is a console-based application developed in C for managing inventory efficiently. It provides functionalities for handling product details and storing data persistently in CSV files. Designed with a user-friendly console interface, it simplifies inventory management tasks.
- User Authentication: Log in with a username to access the application.
- Product Management:
- Add new products.
- Modify existing products.
- Delete products.
- Product Listing:
View products with details like:
- Product ID
- Name
- Description
- Username (associated with the product)
- Unit Price
- Stock Quantity
- Stock Alert Threshold
- Last Stock-In Date
- Last Stock-Out Date
- Search & Sort:
- Search products by name or user.
- Sort products by name or unit price.
- Persistent Storage: Save product data in a CSV file for future access.
- Security Features:
-
Password Hashing with OpenSSL: User passwords are securely salted and hashed before storage to enhance protection against unauthorized access.
-
Brute Force Prevention: Implemented mechanisms to prevent brute force attacks, ensuring the security of user accounts.
-
DDoS Protection: Measures in place to mitigate Distributed Denial of Service attacks, ensuring the availability of the system.
-
Session Management: Secure session handling to prevent session hijacking and fixation.
-
- Programming Language: C
- Storage: File-based (CSV)
- Interface: Console
To run this project, you need to install:
-
MinGW-w64: C compiler for Windows
- Download from MinGW-w64 releases
-
OpenSSL: Required for security features
- Download from OpenSSL for Windows
-
Make: For building the project
- Download from Make for Windows
After installation, verify everything works by running:
gcc --version
openssl version
make --version
windres --version- Clone the repository:
git clone https://github.com/SBAI-Youness/Stock_Management_System.git
- Navigate to the project directory:
cd ./Stock_Management_System - Build the project:
make
- Navigate to the build directory and run the application:
cd build .\main.exe
Stock Management System is released under the MIT License. See the LICENSE file for more details.