https://github.com/thomascode92/goldwatcher
Keep track of the price of gold in (almost) real-time while monitoring your current gold holdings. 📈 💰
https://github.com/thomascode92/goldwatcher
fyne go golang gold-price udemy-course-project
Last synced: 22 days ago
JSON representation
Keep track of the price of gold in (almost) real-time while monitoring your current gold holdings. 📈 💰
- Host: GitHub
- URL: https://github.com/thomascode92/goldwatcher
- Owner: ThomasCode92
- Created: 2024-06-21T20:30:06.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-20T12:52:41.000Z (9 months ago)
- Last Synced: 2024-10-12T00:47:06.921Z (6 months ago)
- Topics: fyne, go, golang, gold-price, udemy-course-project
- Language: Go
- Homepage:
- Size: 184 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Goldwatcher
Keep track of the price of gold in (almost real-time) while monitoring your current gold holdings. 📈 💰
**About this Repository**
🌐 Project of the _[Building GUI Applications with Fyne and Go](https://www.udemy.com/course/building-gui-applications-with-fyne-and-go-golang/?couponCode=KEEPLEARNING)_ course.
⭐ A _"Gold Price Monitor"_ application with SQL database.
🔍 Making API Requests, Refreshing the UI, database interactions,...## Start the application
To start the application, ensure you have both Fyne and Go installed on your system. You can refer to the official documentation for installation instructions:
- [Fyne Documentation](https://docs.fyne.io/) - Easily Build Native Apps that Work Everywhere
- [Go Programming Language](https://go.dev/) - Build Simple, Secure and Scalable systemsIf you are using [asdf](https://asdf-vm.com/), you can also install Go via the _.tool-versions_ file. More information on this can be found [here](https://asdf-vm.com/manage/configuration.html#tool-versions).
Once Go and Fyne are installed, follow these steps to start the application:```bash
git clone https://github.com/ThomasCode92/goldwatcher
cd goldwatcher # navigate into project folder
touch sqlite.db # create SQLite DB file
DB_PATH=./sqlite.db go run . # start the application
```To run the unit tests, use the command `go test -v .`.
## Data Resources
The application retrieves gold price information through some API requests to [goldprice.org](https://goldprice.org/).
The price data, in JSON format, is accessed via an [API endpoint](https://data-asg.goldprice.org/dbXRates/usd) while the chart is available for download as a [.png file](https://goldprice.org/charts/gold_3d_b_k_usd_x.png).