Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

bouzuya/cars

Repository files navigation

cars: counters and reporters

A Web API server & CLI for counting and reporting your data.

Example

See: bouzuya/cars-example

Usage

1. Fork repository

Fork it

2. Clone your repository

$ username='your github username'
$ git clone git@github.com:${username}/cars
$ cd cars

3. Add your counters and reporters

e.g.

$ # counters
$ npm install --save bouzuya/cars-counter-hatena-bookmark
$
$ # reporters
$ npm install --save bouzuya/cars-reporter-hatena-graph

4. Commit and push to your repository.

$ # commit & push
$ git commit -am 'add counters and reporters'
$ git push origin master

5. Press Heroku button

Access your repository (https://github.com/${username}/cars) and press Heroku button.

Deploy

6. Set environment variables

See: your counters & reporters document.

e.g.

  • CARS_TOKEN
  • HATENA_USERNAME
  • HATENA_APIKEY

7. Add job in Heroku Scheduler console

TASK DYNO FREQUENCY
$ npm run worker 1X Daily

Badges

npm version Travis CI Coveralls

License

>= 0.2.0

MIT

0.1.0

ISC

Author

bouzuya <m@bouzuya.net> (https://bouzuya.net/)