Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoniojcosta/go-price-monitor
Price monitor using Go that sends a message to the user whatsapp if the product it's on sale
https://github.com/antoniojcosta/go-price-monitor
colly fyne go golang gorm gui postgresql webscraping whatsapp
Last synced: 4 days ago
JSON representation
Price monitor using Go that sends a message to the user whatsapp if the product it's on sale
- Host: GitHub
- URL: https://github.com/antoniojcosta/go-price-monitor
- Owner: AntonioJCosta
- License: mit
- Created: 2022-11-23T01:10:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T23:54:09.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T12:43:51.157Z (5 months ago)
- Topics: colly, fyne, go, golang, gorm, gui, postgresql, webscraping, whatsapp
- Language: Go
- Homepage:
- Size: 15.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Antonio Costa Poster TCC - En](https://user-images.githubusercontent.com/87380701/209244529-650922f1-a72a-4e0c-b2c9-78dcb91d8ae1.png)
The project was carried out at the 2nd Research and Extension Exhibition at Centro Regional de Espirito Santo do Pinhal university.# Index
- [Go Language](#go_language)
- [Installing the project](#project_install)
- [Graphical User Interface (GUI)](#gui)
- [WhatsApp Zenvia API](#api)
- [Database connection](#db_connection)
- [Download the tool for database connection](#db_tool)
- [Creating a database](#db_create)
- [Editing environment variables](#dot_env)
- [Running the project](#run_proj)Have Go version 1.18 or higher installed
Language installation link [Download and install](https://go.dev/doc/install)
To install the project along with its dependencies, run the following commands
```
git clone https://github.com/Antonio-Costa00/Go-Price-Monitor.git
cd Go-Price-Monitor
go mod tidy
```## Graphical user interface (GUI)
At the time of running the application, there may be some compatibility issues related to the graphics application. To resolve this, refer to the official Fyne framework documentation
[Get Started](https://developer.fyne.io/started/)To enable sending messages on WhatsApp using the Zenvia API, you need to
follow the steps of the official API documentation [WhatsApp sender and recipient](https://zenvia.github.io/zenvia-openapi-spec/v2/#section/WhatsApp-sender-and-recipient)To run the application, a connection to the database is required.
For the project was used
the PostgreSQL database was. If you want to use a different bank, change the connection method in
`pkg/db`### Download the tool for database connection
The easiest way to create a database is with pgAdmin. The tool can be downloaded
via the link [Download](https://www.pgadmin.org/download/)Create a database named _price_monitor_
## Editing environment variables
Change the file name from .env.example to .env and fill in the credentials according to your values.
To run the application
`go run cmd/main.go`To build an executable of the application
`go build cmd/main.go`## Author
👤 **Antonio Costa**
- GitHub: [@Antonio-Costa00](https://github.com/Antonio-Costa00)
- Linkedin: [@Antonio Costa](https://www.linkedin.com/in/antonio-costa-099ab0182/)## Contributing
Contributions, issues and feature requests are welcome!
## Show your support
Give a ⭐️ if this project helped you!
## License
Copyright © 2022 [Antonio Costa](https://github.com/Antonio-Costa00).
This project is [MIT](https://github.com/Antonio-Costa00/Go-Price-Monitor/blob/master/LICENSE) licensed.---
Made by :blue_heart: by [Antonio Costa](https://github.com/Antonio-Costa00)