Price Tracker Setup

Configuration required to get started

Quick Setup

Create a default configuration file automatically. This will set up basic settings to get you started quickly.

Manual Setup

Create your own configuration file with custom settings. This gives you full control over the application settings.

Manual Configuration Instructions
1. Create the configuration file:

Create a file named {{ config_path }} in the root directory of the application.

2. Add the following basic configuration:
{ "database": { "path": "price_tracker.db" }, "scraping": { "delay_between_requests": 2, "max_concurrent_requests": 1, "timeout": 30, "retry_attempts": 3 }, "notifications": { "email": { "enabled": false, "smtp_server": "smtp.gmail.com", "smtp_port": 587, "smtp_username": "", "smtp_password": "", "sender_email": "", "recipient_email": "" } }, "sites": { "jjfoodservice": { "enabled": true, "base_url": "https://www.jjfoodservice.com" } } }
3. Restart the application:

After creating the configuration file, restart the Price Tracker application.

Tip: You can also use environment variables to override configuration settings when running in Docker. Check the documentation for available environment variables.
Running with Docker?

If you're running this application in Docker, you can configure it using environment variables instead of a config file:

docker run -e DATABASE_PATH=/app/data/tracker.db \ -e EMAIL_ENABLED=true \ -e SMTP_SERVER=smtp.gmail.com \ -e SENDER_EMAIL=your-email@gmail.com \ -p 5000:5000 price-tracker

Available environment variables: DATABASE_PATH, EMAIL_ENABLED, SMTP_SERVER, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, SENDER_EMAIL, RECIPIENT_EMAIL, WEBHOOK_ENABLED, WEBHOOK_URL