An inventory manager for cars with multi-threading and local networking support. This project was aimed to learn about networking and multi-threading in Java. A demonstration can be found here
- Login as seller, add/remove/update cars from inventory
- Login as buyer, buy/view cars from all available sellers
- Support for multiple instances of sellers and buyers
- All information between buyers and sellers are updated synchronously
- Download openjfx 11.0.2 and unzip contents
- Clone and open this repository in any suitable Java IDE (IntelliJ IDEA preferred)
- Add
openjfx-11.0.2/lib
to project libraries. From IntelliJ, this can be done by navigating toProject structure -> Libraries -> +
src/server/Server.java
is responsible for handling authentication requests and synchronizing data between multiple instances. RunServer.main()
first. The login information can be found inServer.java
. Users withaccess=1
are sellers, and customers are withaccess=0
.src/gui/Main.java
is responsible for the GUI interface. RunMain.main()
and the app should be connected to server upon running. Login with the user information stored inServer.java
.- Multiple instances of the GUI can be run if needed. For this, enable
Allow multiple instances
in the edit/run configuration within IntelliJ.