Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.


Made by Antonio Costa


Github - Antonio Costa


Linkedin - Antonio Costa


Email - Antonio Costa


Talk to me on WhatsApp - Antonio Costa

# 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)

## Go language

Have Go version 1.18 or higher installed

Language installation link [Download and install](https://go.dev/doc/install)

## Installing the project

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/)

## WhatsApp Zenvia API

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)

## Database connection

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/)

### Creating a database

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.

## Running the project

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)