{"id":29906276,"url":"https://github.com/lmackenzie94/stock-checker","last_synced_at":"2026-07-17T11:34:09.797Z","repository":{"id":290598608,"uuid":"974935699","full_name":"lmackenzie94/stock-checker","owner":"lmackenzie94","description":"Checks the stock of Black Toe Running products.","archived":false,"fork":false,"pushed_at":"2025-05-11T15:27:36.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-07-17T11:34:06.954Z","etag":null,"topics":["aws","node-cron","pm2","puppeteer","twilio-sms"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lmackenzie94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-04-29T14:25:13.000Z","updated_at":"2025-05-11T15:27:40.000Z","dependencies_parsed_at":"2025-04-29T17:23:23.220Z","dependency_job_id":"dac761e3-cf14-4e19-9eb1-e11ef45f7959","html_url":"https://github.com/lmackenzie94/stock-checker","commit_stats":null,"previous_names":["lmackenzie94/stock-checker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lmackenzie94/stock-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmackenzie94%2Fstock-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmackenzie94%2Fstock-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmackenzie94%2Fstock-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmackenzie94%2Fstock-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmackenzie94","download_url":"https://codeload.github.com/lmackenzie94/stock-checker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmackenzie94%2Fstock-checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35580669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","node-cron","pm2","puppeteer","twilio-sms"],"created_at":"2025-08-01T20:44:47.971Z","updated_at":"2026-07-17T11:34:09.791Z","avatar_url":"https://github.com/lmackenzie94.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Black Toe Stock Checker\n\nChecks the stock of Black Toe Running products, using\n\n- `Puppeteer` (to scrape the website)\n- `Twilio` (to send myself text messages)\n- `Node.js` (to run the script)\n- `PM2` (to manage the script)\n- `node-cron` (to run the script at 10am and 6pm EST every day)\n- a `.json` file of products to check\n\n## Setup (on AWS EC2)\n\n- SSH into the EC2 instance (`ssh -i \"aws-ec2-lukes-macbook.pem\" [instance Public DNS]`)\n- update packages: `sudo apt update`\n- upgrade packages: `sudo apt upgrade -y`\n- clone the repo: `git clone https://github.com/luke-s-macbook/stock-checker.git`\n- `cd stock-checker`\n- install dependencies: `npm install`\n- add `.env` file\n- install Chromium browser (`sudo apt install -y chromium-browser`)\n- install Puppeteer dependencies (see list [here](https://www.browserless.io/blog/puppeteer-on-aws-ec2))\n- start the script with PM2: `pm2 start index.mjs --interpreter node --name \"stock-checker\"`\n- save the PM2 config: `pm2 save`\n- configure PM2 to start on boot: `pm2 startup`\n\n### Helpful PM2 commands\n\n- `pm2 list`\n- `pm2 logs stock-checker`\n- `pm2 stop stock-checker`\n- `pm2 delete stock-checker`\n\n## Deployment (to AWS EC2)\n\n- `ssh -i \"aws-ec2-lukes-macbook.pem\" [instance Public DNS]`\n- `cd stock-checker`\n- `git pull`\n- `pm2 restart stock-checker`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmackenzie94%2Fstock-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmackenzie94%2Fstock-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmackenzie94%2Fstock-checker/lists"}