Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nnqq/shopgrip
🛒 Eshop prices monitoring
https://github.com/nnqq/shopgrip
moleculer-js mongodb nats nodejs vk-bot
Last synced: 9 days ago
JSON representation
🛒 Eshop prices monitoring
- Host: GitHub
- URL: https://github.com/nnqq/shopgrip
- Owner: nnqq
- Created: 2019-10-04T21:35:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T11:25:20.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T13:32:14.247Z (over 1 year ago)
- Topics: moleculer-js, mongodb, nats, nodejs, vk-bot
- Language: TypeScript
- Homepage:
- Size: 1.28 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ShopGrip eshop price monitoring
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
## Stack
* TypeScript
* MongoDB
* MoleculerJS microservices
* NATS transport## Parsing logic
Parsing title and price priority:
1. Microdata
2. HTML tags
3. Custom parsing for several websitesSo ~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
## Run
### Dev env
Fill `eco/eco.config.js` with your vars and run:
```
npm i
```And this will start all services locally:
```
npm run pm2Debug
```### Prod env
Deploy flow for [dokku](http://dokku.viewdocs.io/dokku/):
Every microservice in `packages` folder have npm script `deploy*ServiceName*` (don't forget to change `ssh [email protected]` with your domain), for example run this to delpoy `admitad` service to [dokku](http://dokku.viewdocs.io/dokku/) server.
```
npm run deployAdmitad
```## Contact author
[Telegram](https://t.me/aveDenis)