Skip to content

vicfic18/cart-tel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cart-Tel

Cart-Tel is a TUI platform for selling and buying items. It has features like user authentication and efficient inventory management.

Compiling

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/*.java

Running the Application

You can run Cart-Tel in two modes: as a standalone desktop application or as a multi-user Telnet server.

Standalone App

To run the single-user standalone version:

java -cp ".:CartTel/TUI/lanterna-3.1.3.jar" CartTel.App

Telnet Server

To start the server, which allows multiple users to connect from a Telnet client:

java -cp ".:CartTel/TUI/lanterna-3.1.3.jar" CartTel.TelnetServer

Test Data Setup

Before 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.TestDataPopulator

This 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.

About

Cart-Tel is a TUI platform for selling and buying items. Made for end of course project.

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages