Trackey is a price tracking application built with Electron and Node.js. It allows users to monitor the prices of products on various websites and get alerts when the prices drop below a specified target. The application uses Azure OpenAI to dynamically determine the correct HTML selector for extracting the price from the webpage.
- Track prices of products from various websites.
- Get alerts when prices drop below a specified target.
- Uses Azure OpenAI to dynamically determine the correct HTML selector for price extraction.
- Save and load trackers from a JSON file.
- Node.js installed on your machine.
- An Azure OpenAI account with the necessary API keys and endpoint.
-
Clone the repository:
git clone <repository-url> cd trackey
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add your Azure OpenAI credentials. Refer to the.env.example
file for the required environment variables:cp .env.example .env
Edit the
.env
file and add your Azure OpenAI credentials:AZURE_OPENAI_ENDPOINT=https://<your-azure-openai-endpoint> AZURE_OPENAI_API_KEY=<your-azure-openai-api-key> AZURE_OPENAI_CHAT_COMPLETION_MODEL_DEPLOYMENT_ID=<your-deployment-id> AZURE_OPENAI_API_VERSION=<your-api-version>
-
Run the application:
npm start
- main.js: The main file that initializes the Electron app, handles IPC events, and manages price tracking logic. See main.js for more details.
- preload.js: Preloads scripts to expose APIs to the renderer process.
- index.html: The main HTML file for the Electron app's UI.
- trackers.json: A JSON file to save and load trackers.