TechStore is a simple Java CLI application to manage product inventory and sales. This version is containerized using Docker for easy deployment and testing.
- Product Management:
- Add new products
- Update existing products
- Delete products
- View all products
- View single product
- View low stock products
- Sales Management:
- Make a sale
- View sales report
- Java 21 (already compiled into the JAR)
- Docker installed and running, if using Docker Method
- Run the JAR file using the following command:
java -jar techstore.jar
- Go to
src/techstore/main/Main.java - Right-click →
Run 'Main.main()'
docker build -t techstore-app .
docker run --rm -it techstore-app
Windows (CMD):
docker run -v %cd%/data:/app/data --rm -it techstore-app
WSL/Linux/macOS (Bash):
docker run -v "$PWD/data:/app/data" --rm -it techstore-app
Unit tests for TechStore are written using JUnit 5 and are located in the /test folder.
- Go to
File→Project Structure→Modules→Dependenciestab - Click the
+button →JARs or directories... - Download the JUnit 5 JAR from here
- Set the scope to
Test→Apply→OK - Right-click the
test/folder →Mark Directory as→Test Sources Root
- Right-click the
test/folder or any test class →Run 'All Tests' - You will see test results in the IntelliJ Run tab
This project is licensed under the MIT License - see the LICENSE file for details.









