Cart-Tel is a TUI platform for selling and buying items. It has features like user authentication and efficient inventory management.
First, compile all the source files. This command compiles the standalone app, the Telnet server, and all management classes.
javac -cp ".:CartTel/TUI/lanterna-3.1.3.jar" CartTel/*.java CartTel/TUI/*.java CartTel/UserManagement/*.java CartTel/ItemManagement/*.javaYou can run Cart-Tel in two modes: as a standalone desktop application or as a multi-user Telnet server.
To run the single-user standalone version:
java -cp ".:CartTel/TUI/lanterna-3.1.3.jar" CartTel.AppTo start the server, which allows multiple users to connect from a Telnet client:
java -cp ".:CartTel/TUI/lanterna-3.1.3.jar" CartTel.TelnetServerBefore running the app for the first time, or when you want to reset the database with fresh test data, run the TestDataPopulator:
javac -cp ".:CartTel/TUI/lanterna-3.1.3.jar" CartTel/TestDataPopulator.java CartTel/UserManagement/*.java CartTel/ItemManagement/*.java
java CartTel.TestDataPopulatorThis will create:
- 2 Test Customers: C1, C2 (password: 1234)
- 2 Test Sellers: S1, S2 (password: 1234)
- Sample Items: 6 items from S1 (electronics) and 6 items from S2 (groceries)
All test accounts use 1234 as the password for quick testing.