- Product management: name, price, quantity, expiration, shipping weight.
- Cart functionality with quantity checks.
- Full checkout process with receipt and shipping details.
- Handles expired products, insufficient balance, and empty carts.
- Java Development Kit (JDK) 11 or higher must be installed and available in your system PATH.
- Download JDK (or from Oracle/OpenJDK)
- Confirm installation by running
java -versionandjavac -versionin your terminal.
- Navigate to the project directory:
cd Fawry_Ecommerce_Submission - Compile all Java files:
javac -cp . *.java model/*.java cart/*.java service/*.java user/*.java
- Run the application:
java -cp . ECommerceApp
- All code was written manually and covers the expected use cases with test scenarios in
main(). - If you encounter any issues, ensure your JDK is properly installed and your terminal is in the correct directory.
Below is a screenshot of the application running sample test cases:
