petasittek / chrome-web-store-stats

Tracker for Google Chrome extensions metadata - install count, rating etc. (send via email, StatsD)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chrome Web Store Stats

TODO

  • Get rid of cron inside container, run via OS cron
    • Delete CMD from Dockerfile
    • docker-compose run app node /app/index.js -c example.js --email

Run locally

# setup environment
mkdir -p src/data/{config,metadata}

# you can use an example config
# you'll need to set the SMTP/StatsD credentials though
cp example/config.js src/data/config/example.js

# move to src dir
cd src

# install deps
npm install

# run one of the following commands, e.g. from cmd or by cron
node index.js -c example.js --email
node index.js -c example.js --statsd
node index.js -c example.js --email --statsd

Run via Docker Compose

# setup environment
mkdir -p data/{config,metadata}

# you can use an example config
# you'll need to set the SMTP/StatsD credentials though
cp examples/config.js data/config/example.js

# create crontab file
cp examples/crontab data/crontab

Run via crontab

# start container
docker-compose [-p chrome-web-store-stats] up [--build] [--detach]

Run specific command

# run command
docker-compose run --entrypoint="node /app/index.js -c example.js --email" app

About

Tracker for Google Chrome extensions metadata - install count, rating etc. (send via email, StatsD)

License:MIT License


Languages

Language:JavaScript 99.1%Language:Dockerfile 0.9%