Skip to content

OGordievsky/CoffeeVending

Repository files navigation

CoffeeVending


This is emulator of coffee fandomat based on JavaFX technology with connection to PostgreSQL database.

When the application is launched, it opens a working window 800x600px.

At the top, there is a list of products and a search bar on product name.
When filling in the search bar - the list of products dynamically filtering.
The list of goods is loaded from the PostgreSql database.
When you click on the product line or click on the "AddProduct" button - one unit is added to the cart, while the same products are summed up.

The shopping cart displays a list of added products, quantity and their total price.
Any item in the basket can be deleted by clicking the button "Delete".
Any manipulation with the items in the shopping cart results in to recalculate the total.
When you click on the "Pay" button, a window for entering the amount of payment for bank.
If the entered payment amount matches the final the amount of goods in the basket,
then the full receipt with goods is recorded in the databases and window return to the main working space with resetting the basket.

Stack:
Java 8, JavaFX 8, PostgreSQL 9, Gradle 5.
fxml pages build in Scene Builder

Before start this Application:
Ensure that your PC have installed Java 8
Create PostgreSQL database name: "cashtest" with user: "coffetest" password "coffetest"
(You can change this credentials in project file "db.properties")

How to start it?

Simple way to start from OS

1. Click "Download" after that the start upload archive from:
https://github.com/OGordievsky/CoffeeVending/blob/master/Application.rar
2. Unpack Application.rar into your directory.
3. Double-click on Start.bat
3.1 Or into project directory type next console command: java -jar coffevending.jar

From you favorite IDE's:

1. Open you favorite IDE
2. Walk into yours "projects" directory
3. Ensure that your PC have Git
3. In project directory type next console command: git clone https://github.com/OGordievsky/CoffeeVending
3. In yours IDE make next steps: File -> Open -> \projects\CoffeeVending -> Open as Java8-project
4. Find main class "Application" in: \CoffeeVending\src\coffevending\Application.java
5. Right click on Application.java select [Run] (green "Play" triangle)

Enjoy to use

Releases

No releases published

Packages

No packages published

Languages