VK bot which receive a link to some stuff in eshop, and when price goes down, it will send a message to you. Bot is just separated service, as way of interaction with user, easy to add API and connect it to website
- TypeScript
- MongoDB
- MoleculerJS microservices
- NATS transport
Parsing title and price priority:
- Microdata
- HTML tags
- Custom parsing for several websites
So ~90% eshops are included by design. Also it cuts link with Admitad API to get referral revenue. But it's friendly for non-Admitad eshops - if bot can't get referral link from Admitad for certain eshop, it adds stuff to your watch list
Fill eco/eco.config.js
with your vars and run:
npm i
And this will start all services locally:
npm run pm2Debug
Deploy flow for dokku:
Every microservice in packages
folder have npm script deploy*ServiceName*
(don't forget to change ssh root@shopgrip.ru
with your domain), for example run this to delpoy admitad
service to dokku server.
npm run deployAdmitad