This is a Java Swing-based Point of Sale (POS) system built with MySQL server integration using the MVC (Model-View-Controller) architecture. It offers a user-friendly interface for managing sales transactions, inventory, and customer data.
- User Authentication: Secure login functionality to ensure only authorized personnel can access the system.
- Sales Management: Ability to process sales transactions, including adding items, applying discounts, and generating invoices.
- Inventory Management: Keep track of available stock, add new items, update quantities, and remove items when sold.
- Customer Management: Maintain a database of customer information for loyalty programs and personalized services.
- Reporting: Generate reports on sales performance, inventory levels, and customer analytics.
- Java Swing: For building the graphical user interface (GUI).
- MySQL: Database management system for storing and retrieving data.
- MVC Architecture: Organizes the codebase into Model, View, and Controller components for better maintainability and scalability.
- JDBC (Java Database Connectivity): API for connecting Java applications to relational databases like MySQL.
- Validation: Implement robust validation mechanisms to ensure data integrity and prevent errors.
-
Clone the repository:
git clone https://github.com/fawadeqbal/pos.git
-
Set up the database:
- Install MySQL server.
- Create a new database named
pos
. - Import the SQL schema from
DBScripts/pos.sql
.
-
Configure database connection:
- Update the database connection (Line 23) settings in
POS/src/dal/DALMnager.java
with your MySQL server credentials.
- Update the database connection (Line 23) settings in
-
Build and run:
- Open the project in your favorite Java IDE.
- Build and run the project.
-
Login: Enter your credentials to access the system.
-
Navigate: Use the menu options to navigate between different sections such as sales, inventory, and customers.
-
Perform actions: Add new items, process sales, update inventory, and manage customer information as needed.
-
Generate reports: Utilize the reporting functionality to gain insights into business performance.
Contributions are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.