Price Watch Dog is a web application built with Next.js that allows users to input the URL of an Amazon product. The app scrapes Amazon to show the current highest, lowest, and average prices of the product. Additionally, users can opt to track the product's price, and the app will notify them when the price drops.
- Product Price Scraping: Input an Amazon product URL to see the current highest, lowest, and average prices.
- Price Tracking: Track the price of a product and receive notifications when the price drops.
- Cron Jobs: Automated price checking at regular intervals using cron jobs.
- Frontend: Next.js, Next.js, Headless UI, Tailwind CSS
- Web Scraping: Cheerio, Bright Data
- Cron Jobs: Node-cron
- Notifications: Nodemailer (for email notifications)
- Database: MongoDB
-
Clone the repository:
git clone https://github.com/DarrenChahal/PriceWatchDog.git cd PriceWatchDog
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add the following variables:BRIGHT_DATA_USERNAME=
BRIGHT_DATA_PASSWORD=MONGODB_URI=
EMAIL_PASSWORD=
-
Run the deployment server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
-
Enter the Amazon product URL: On the home page, paste the URL of the Amazon product you want to track.
-
View Price Information: After submitting the URL, you will see the current highest, lowest, and average prices of the product.
-
Track the Product: Click on the "Track" button to start tracking the product's price. You will be notified via email when the price drops.