{"id":18389758,"url":"https://github.com/danielwpz/bh-alert","last_synced_at":"2025-04-12T06:30:13.585Z","repository":{"id":72237841,"uuid":"125565105","full_name":"danielwpz/bh-alert","owner":"danielwpz","description":"In stock alert service for B\u0026H photos.","archived":false,"fork":false,"pushed_at":"2018-04-10T00:28:58.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T01:13:33.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielwpz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-16T20:12:03.000Z","updated_at":"2018-04-10T00:28:55.000Z","dependencies_parsed_at":"2023-05-31T10:31:20.857Z","dependency_job_id":null,"html_url":"https://github.com/danielwpz/bh-alert","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwpz%2Fbh-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwpz%2Fbh-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwpz%2Fbh-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwpz%2Fbh-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielwpz","download_url":"https://codeload.github.com/danielwpz/bh-alert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248528988,"owners_count":21119416,"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":[],"created_at":"2024-11-06T01:44:27.206Z","updated_at":"2025-04-12T06:30:13.554Z","avatar_url":"https://github.com/danielwpz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bh-alert\nIn stock alert service for B\u0026amp;H photos.\n      \n## Description\nThe job of this service is really simple:     \nWhen given a list of product ids in B\u0026amp;H photos, it will check if those products are in stock or not.     \n- A REST API is published at `/products` to show the query results.      \n- And a cron job is also scheduled every minute to periodcally check the in stock status.\nIf the status changed, it will send out SMS notifications to all subscribers.         \n        \nList of product IDs and subscriber phone numbers are configured in `config.js`\n      \n## Run\n\u003e To run it you'll need a stdlib token that has access to messagebird, which allows you to send SMS messages.      \n        \n1. `npm i`    \n2. `STDLIB_TOKEN=YOUR_TOKEN npm run start`\n\n## Deploy\n\u003e Make sure you have `docker`, `nomad`, `aws-cli` locally installed. And for AWS, you'll need a credential which has access to SQS deploy queue configured in `deploy.sh`        \n      \n`npm version VERSION`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwpz%2Fbh-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielwpz%2Fbh-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwpz%2Fbh-alert/lists"}