{"id":16162608,"url":"https://github.com/jmb12686/serverless-price-tracker-app","last_synced_at":"2025-07-12T16:07:15.330Z","repository":{"id":31207860,"uuid":"127059340","full_name":"jmb12686/serverless-price-tracker-app","owner":"jmb12686","description":"Serverless app for tracking price of amazon.com items.  Select items in the React.js UI to register for price tracking in the backend (AWS Lambda + DynamoDB).  When the price drops to the requested $ amount, a notification function (AWS Lambda) sends an email via AWS SNS.","archived":false,"fork":false,"pushed_at":"2022-12-10T16:15:06.000Z","size":72,"stargazers_count":7,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T05:40:54.996Z","etag":null,"topics":["aws-lambda","aws-sns","price-drops","serverless","tracking-price"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmb12686.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-27T23:57:07.000Z","updated_at":"2023-01-02T23:11:30.000Z","dependencies_parsed_at":"2023-01-14T18:33:31.078Z","dependency_job_id":null,"html_url":"https://github.com/jmb12686/serverless-price-tracker-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmb12686/serverless-price-tracker-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmb12686%2Fserverless-price-tracker-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmb12686%2Fserverless-price-tracker-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmb12686%2Fserverless-price-tracker-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmb12686%2Fserverless-price-tracker-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmb12686","download_url":"https://codeload.github.com/jmb12686/serverless-price-tracker-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmb12686%2Fserverless-price-tracker-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265017273,"owners_count":23698460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","aws-sns","price-drops","serverless","tracking-price"],"created_at":"2024-10-10T02:31:27.695Z","updated_at":"2025-07-12T16:07:15.302Z","avatar_url":"https://github.com/jmb12686.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless-price-tracker-app\nServerless app for tracking price of amazon.com items.  Select items in the React.js UI to register for price tracking in the backend (AWS Lambda + DynamoDB).  When the price drops to the requested $ amount, a notification function (AWS Lambda) sends an email via AWS SNS.\n\n## Instructions\n\n### Clone Repo\n```bash \ngit clone https://github.com/jmb12686/serverless-price-tracker-app.git\ncd serverless-price-tracker-app/backend/\n```\n\n### Install dependencies\n```bash\nnpm install\n```\n\n### Deploy with serverless framework\n```bash\nserverless deploy --aws-profile \u003cAWS_CREDENTIAL_PROFILE_NAME\u003e\n```\n\n### Usage\nObtain the **ServiceEndpoint** url from the cloudformation stack output.  This is the entry point to API Gateway for our app deployment and will be the root base URL for our API.  \n\n#### Get Price\n`$ROOT_BASE_URL/api/v1/price/$PRODUCT_URL` - Get price for item.  Example Usage:\n\n`https://XXXXXXXX.execute-api.us-east-2.amazonaws.com/dev/api/v1/price/https%3A%2F%2Fwww.walmart.com%2Fip%2FParent-s-Choice-HMO-NonGMO-Sensitivity-Infant-Formula-4-Pack-33-2oz-ea%2F407822086`\n\n* `$ROOT_BASE_URL` - ServiceEndpoint / API Gateway endpoint\n* `$PRODUCT_URL` - URL of product to scrape price from.  Must be URL encoded.\n\n#### Get Product Details\n`$ROOT_BASE_URL/api/v1/productDetails/$PRODUCT_URL` - Get details for item.  Example Usage:\n\n`https://XXXXXXXX.execute-api.us-east-2.amazonaws.com/dev/api/v1/productDetails/https%3A%2F%2Fwww.walmart.com%2Fip%2FParent-s-Choice-HMO-NonGMO-Sensitivity-Infant-Formula-4-Pack-33-2oz-ea%2F407822086`\n\n* `$ROOT_BASE_URL` - ServiceEndpoint / API Gateway endpoint\n* `$PRODUCT_URL` - URL of product to scrape details from.  Must be URL encoded.\n\n#### Watch item for price drop notifications\n`$ROOT_BASE_URL/api/v1/watch` - Watch item for price drop.  Expects `url` `priceThreshold` and `notificationPhoneNumber` as POST JSON input data:\n* JSON input example: `{\"url\":\"https://www.walmart.com/ip/Parent-s-Choice-HMO-NonGMO-Sensitivity-Infant-Formula-4-Pack-33-2oz-ea/407822086\", \"priceThreshold\":PRICE, \"notificationPhoneNumber\":\"5555555555\"}`\n\nFull curl usage example: \n```bash\ncurl -d '{\"url\":\"https://www.walmart.com/ip/Parent-s-Choice-HMO-NonGMO-Sensitivity-Infant-Formula-4-Pack-33-2oz-ea/407822086\", \"priceThreshold\":74, \"notificationPhoneNumber\":\"5555555555\"}' -H \"Content-Type: application/json\" -X POST https://XXXXXXXX.execute-api.us-east-2.amazonaws.com/dev/api/v1/watch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmb12686%2Fserverless-price-tracker-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmb12686%2Fserverless-price-tracker-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmb12686%2Fserverless-price-tracker-app/lists"}