Skip to content

This is a simple command-line Java application designed to help manage an online T-shirt store. This project demonstrates core Java programming concepts without Object Oriented Principals, array manipulation, and CLI-based user interaction.

Notifications You must be signed in to change notification settings

Nugi29/clothing-store-java-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Fashion Shop - Java CLI T-Shirt Store Management System

Overview

Fashion Shop is a command-line Java application designed to help manage an online T-shirt store. The system allows the shop owner to handle daily transactions, manage orders, track customers, and generate various reports. This project demonstrates core Java programming concepts without Object Oriented Principals, array manipulation, and CLI-based user interaction.

Features

  • Place Order: Add new T-shirt orders with size, quantity, and customer phone number.
  • Search Customer: View a summary of a customer's purchases by phone number, including quantities and amounts by T-shirt size.
  • Search Order: Look up order details by Order ID.
  • View Reports:
    • Customer Reports (Best customers, all customers, detailed breakdown)
    • Item Reports (Best selling sizes by quantity or amount)
    • Order Reports (All orders, sorted by amount)
  • Set Order Status: Update the status of an order (Processing, Delivering, Delivered).
  • Delete Order: Remove an order from the system.

Command Line Interface (CLI)

When you run the application, you will see a menu similar to the following:

[1] Place Order                [2] Search Customer
[3] Search Order               [4] View Reports
[5] Set Order Status           [6] Delete Order

Input Option :
  • Enter the number corresponding to the action you want to perform.
  • The program will guide you through each process step by step.
  • If you enter an invalid option, the program will not respond (as per requirements).

How It Works

  • All data is stored in arrays in memory (no database required).
  • Each order is assigned a unique Order ID.
  • T-shirt sizes supported: XS, S, M, L, XL, XXL (with different prices).
  • Reports and searches are generated dynamically from the stored data.

How to Run

  1. Requirements:
    • Java JDK 8 or higher
    • Windows, macOS, or Linux (CLI-based)
  2. Compile:
    • Open a terminal in the project directory.
    • Run: javac FashionShop.java
  3. Run:
    • Run: java FashionShop

Example Data Flow

  1. Placing an Order:
    • Enter customer phone number, T-shirt size, and quantity.
    • System calculates the amount and confirms the order.
  2. Searching for a Customer:
    • Enter phone number to view all purchases by size and total amount.
  3. Viewing Reports:
    • See best customers, best selling sizes, and all orders sorted by amount.

Notes

  • The application is designed for educational purposes and does not persist data after the program exits.
  • All user input is handled via the command line.
  • The system is robust against invalid menu options (no response for wrong input).

License

This project is provided for educational use. You may modify and use it as needed for learning or demonstration purposes.


⭐️ From Nugi29

About

This is a simple command-line Java application designed to help manage an online T-shirt store. This project demonstrates core Java programming concepts without Object Oriented Principals, array manipulation, and CLI-based user interaction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages