Skip to content

DMStanle/java-inventory-sales-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Inventory & Sales System

This project is a Java-based backend-style application designed to demonstrate strong object-oriented programming principles, clean architecture, and separation of responsibilities.

The system simulates a simple inventory and sales workflow where products are stored in a catalog, inventory levels are tracked by SKU, and completed sales are recorded in a sales ledger. All business rules are enforced through a centralized service layer rather than a user interface.


Instructions for Build and Use

Software Demo

Software Demo Video

Steps to Build and Run the Software

  1. Open the project in IntelliJ IDEA (or another Java IDE).
  2. Ensure Java is installed (Java 17 or later recommended).
  3. Run the Main class to execute the demo.

Instructions for Using the Software

  1. The program runs automatically without user input.
  2. The console output demonstrates:
    • Product creation and catalog storage
    • Inventory restocking
    • Successful and failed sales attempts
    • Sales ledger records
    • Total revenue calculation
  3. Review the console output to observe how inventory, sales, and revenue are managed through the service layer.

Development Environment

To recreate the development environment, you need the following software:

  • Java Development Kit (JDK) 17+
  • IntelliJ IDEA (Community Edition)
  • Git (bundled with IntelliJ)
  • GitHub account for source control

Useful Websites to Learn More

The following resources were helpful while developing this project:


Future Work

The following improvements could be added in the future:

  • Prevent duplicate SKUs from being added to the product catalog
  • Replace null return values with a result or response object
  • Add profit calculations using product cost data
  • Persist inventory and sales data to a file or database
  • Expand the system with a simple user interface or REST API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages