An open API service indexing awesome lists of open source software.

https://github.com/ilvondir/java-vending-machine

A Java windowed application that showcases the operation of a snack vending machine.
https://github.com/ilvondir/java-vending-machine

java jdbc maven swing

Last synced: 4 months ago
JSON representation

A Java windowed application that showcases the operation of a snack vending machine.

Awesome Lists containing this project

README

          

# Snack Vending Machine

The project presents the operation of a vending machine selling snacks and drinks. It was made in the Java graphical user interface using the Swing library. The software allows you to throw money into the machine and buy the selected product. The program retrieves product data from a database using JDBC.

The project was created to fulfill the requirements of the university course Object-Oriented Programming in the Computer Science degree. The project received a grade of 5.0 on a scale from 2 to 5.

## Used Tools

- Java SE 19
- Swing
- JDBC 4.3
- MySQL Connector/J 8.0.30
- JACo MP3 Player 0.9.3
- Maven 4.0.0

## Requirements

For running this program you need:

- [Java](https://www.java.com/en/download)
- SQL Server e.g. [XAMPP](https://www.apachefriends.org/pl/index.html)

## How to run

1. Install [XAMPP](https://www.apachefriends.org/pl/index.html).
2. Execute command `git clone https://github.com/Ilvondir/java-vending-machine`.
3. Open XAMPP and start Apache with MySQL.
4. Type `localhost` in your browser and open `phpMyAdmin`.
5. Import database from `sql/java-vending-machine.sql`.
6. Install library from `src/main/resources/lib`.
6. Open and compile project in Java IDE.

## First Look

![firstlook](src/main/resources/img/firstlook.PNG?raw=true)