mirror of
https://github.com/tiennm99/store-scraper-bot.git
synced 2026-05-28 10:24:16 +00:00
f3a235de00
Operator runs `npm run migrate` (reads admin + group docs from Atlas) followed by `npm run migrate:bulk` (uploads via wrangler kv bulk put). Cache collections are skipped by default since they auto-rebuild from upstream APIs; --include-cache flag migrates them with TTL preserved. - mongodb is added as a devDependency only — never enters the Worker bundle, the Worker still talks to KV exclusively. - scripts/.atlas-export.json is gitignored (contains exported state). - README documents the one-time runbook.
26 lines
934 B
JSON
26 lines
934 B
JSON
{
|
|
"name": "js-store-scraper-bot",
|
|
"version": "0.3.0",
|
|
"description": "JavaScript port of store-scraper-bot — Telegram bot tracking Apple App Store + Google Play app updates. Deploys to Cloudflare Workers, backed by Cloudflare KV.",
|
|
"type": "module",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"main": "src/index.js",
|
|
"scripts": {
|
|
"dev": "wrangler dev",
|
|
"deploy": "wrangler deploy && npm run register",
|
|
"register": "node --env-file=.env.deploy scripts/register-webhook.js",
|
|
"register:dry": "node --env-file=.env.deploy scripts/register-webhook.js --dry-run",
|
|
"migrate": "node --env-file=.env scripts/migrate-atlas-to-kv.js",
|
|
"migrate:bulk": "wrangler kv bulk put --binding STORE_KV --remote scripts/.atlas-export.json",
|
|
"lint": "node scripts/check-secret-leaks.js"
|
|
},
|
|
"devDependencies": {
|
|
"mongodb": "^6.10.0",
|
|
"wrangler": "^3.90.0"
|
|
},
|
|
"license": "Apache-2.0"
|
|
}
|