A terminal-based Java application to simulate an auction platform with MySQL database connectivity using JDBC.
You can copy the project folder or run:
git clone https://github.com/ShivaGupta-14/Auction_Platform_JDBC_Project.gitOpen MySQL CLI or any GUI tool and run:
SOURCE resources/auction.sql;
SOURCE resources/sample_data.sql;This will create all necessary tables and fill them with demo data.
Run the following command in your terminal:
javac -d out -cp ".;mysql-connector-j-9.4.0.jar" src/*.javaThis command:
● Compiles all Java files from the src folder
● Outputs .class files into the out directory
● Links the JDBC connector during compilation
jar cfm MyAuctionApp.jar Manifest.txt -C out .This packages the compiled files into an executable JAR file with the main class defined.
java -jar MyAuctionApp.jar● A terminal-based menu will appear where you can:
● Register sellers and bidders
● Create auction items
● Place bids
● View auction results and reports
● Java Version: 23.0.1 (build 23.0.1+11-39)
● MySQL Version: 8.0 or higher
● JDBC Driver: mysql-connector-j-9.4.0.jar
● Java VM: Java HotSpot(TM) 64-Bit Server VM
● Code Editor: Visual Studio Code
● Terminal menu using if-else
● Modular design with clean separation of logic and database
● Tested .jar execution
● At least 10 test records in all major tables
●All database inputs taken via terminal
Shiva Gupta
Profile : https://github.com/ShivaGupta-14
