https://github.com/novqigarrix/pos-javafx
This repository contains the source code for the POS application using JavaFX and MySQL.
https://github.com/novqigarrix/pos-javafx
Last synced: 2 months ago
JSON representation
This repository contains the source code for the POS application using JavaFX and MySQL.
- Host: GitHub
- URL: https://github.com/novqigarrix/pos-javafx
- Owner: NovqiGarrix
- Created: 2023-12-07T14:31:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T15:42:34.000Z (over 2 years ago)
- Last Synced: 2023-12-07T16:39:46.413Z (over 2 years ago)
- Language: Java
- Size: 627 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# POS Application
This repository contains the source code for the POS application using JavaFX and MySQL.
## Getting Started
Follow these instructions to set up and run the project on your local machine.
### Prerequisites
* Java 17 or higher
* MySQL 8.0 or higher
* JavaFX
* Scene Builder
### Installation
1. Clone the repository
```sh
git clone https://github.com/NovqiGarrix/pos-javafx
```
2. Import the database
```sh
mysql -u root -p < migrations.sql
```
## Usage
Intellij IDEA provided a simple way to run the application. Just click the green arrow button in the top right corner of
the IDE.
## Compile to JAR
1. Open the project in Intellij IDEA
2. Go to `File` > `Project Structure` > `Artifacts`
3. Click the `+` button and select `JAR` > `Empty`
4. Click `OK`
5. Click `OK` again
6. Go to `Build` > `Build Artifacts` > `Build`
7. The JAR file will be generated in the `out` folder
## Create Installer
You have to compile the project to JAR first before creating the installer, because we're going to need the JAR file.
```sh
jpackage --name AppName --input out/artifacts/pos_jar --main-jar pos_javafx.jar --main-class com.novqigarrix.pos.HelloApplication --type app-image
```
Available app image formats:
* `dmg`
* `pkg`
* `rpm`
* `deb`
* `exe`
* `msi`