Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/synthwaveblues/javafx-application
A program written in Java using the FXML library to compare exchange rates and weather readings
https://github.com/synthwaveblues/javafx-application
api fxml java
Last synced: 17 days ago
JSON representation
A program written in Java using the FXML library to compare exchange rates and weather readings
- Host: GitHub
- URL: https://github.com/synthwaveblues/javafx-application
- Owner: synthwaveblues
- Created: 2024-07-01T17:31:07.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-02T07:15:44.000Z (6 months ago)
- Last Synced: 2024-11-06T04:28:56.384Z (2 months ago)
- Topics: api, fxml, java
- Language: Java
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaFX-application
The program is a JavaFX application that allows users to register, log in, display currency exchange rates, and weather data. Users can register by entering a login and password, which are then hashed and saved to a file. Upon logging in, users can fetch currency exchange rates from the NBP API and display weather data for Poznań from the WeatherAPI. The application updates weather data regularly every 5 minutes. Currency exchange rates are saved to text files, and their contents can be browsed by the user.# In-app functionality
**Registration**: The user enters a login and password, which are hashed and saved in the users.txt file.
**Login**: The user enters a login and password, which are checked against the stored data in the file.
**Fetching currency exchange rates**: The user enters a currency symbol and date, and the application fetches the exchange rate from the NBP API and saves it to a file.
**Displaying currency exchange rates**: The user can display saved exchange rates for a given symbol.
Weather update: The application regularly fetches and displays current weather data for Poznań.The application uses the HttpClient library for making HTTP requests, Gson for parsing JSON responses, and JavaFX for creating the user interface.
# Primary files
• HelloApplication.java: Main application entry point
• MainController.java: Controller for the main application logic
• RegisterController.java: Controller for the user registration functionality
• StartController.java: Controller for handling the initial UI actions**Opened and created in [IntelliJ Idea 2024.1](https://www.jetbrains.com/idea/download/?section=windows)**