A Java-Based CLI for TV Inventory Management
This command-line application facilitates the management of a TV shop's inventory and sales. It provides distinct interfaces for Dealers (selling stock to the shop) and Customers (purchasing TVs), backed by an Oracle Database.
| Category | Technologies |
|---|---|
| Language | |
| Database | |
| Connectivity | |
| IDE |
- π₯ Role-Based Access:
- Shopkeeper/Admin: Manage overall stock and sales.
- Dealer: Interface for suppliers to sell/add new TV units to the inventory.
- Customer: Interface for browsing available TVs and making purchases.
- π Secure Login: Authentication system for different user roles.
- πΎ Persistent Storage: Uses Oracle Database to store inventory levels, sales records, and user data.
The source code is located in the TV Purchasing App directory:
TV.java: Main entry point and orchestration logic.login.java: Handles user authentication and connection initiation.menufordealer.java: The dashboard and options for TV Dealers.menuforuser.java: The purchasing interface for Customers.
-
Oracle Database Setup
- Install Oracle Database (e.g., Express Edition).
- Ensure the JDBC driver is available in your classpath.
- Create the necessary tables (refer to the code for schema details).
-
IDE Configuration (NetBeans)
- Create a new Java Project in NetBeans.
- Copy the files from
TV Purchasing Appinto your project'ssrcfolder. - Add the Oracle JDBC Driver (ojdbc8.jar) to your project's libraries.
-
Run the Application
- Execute
TV.javato start the application.
- Execute
Simplifying electronics retail management.