A Node.js + Vue.js app using RethinkDB in the backend and Chart.js in the frontend to collect and display historical stats for your Dev.to articles.
Find it running at https://devto-stats.herokuapp.com/.
Before deploying to Heroku you need to do the following:
- Go to RethinkDB Cloud and request free alpha access to the RethinkDB Cloud add-on.
- Get an API key from Dev.to (Settings -> Account -> DEV API Keys)
Now run:
$ git clone git@github.com:mostlytyped/dev.to-stats.git
$ cd dev.to-stats/
$ heroku create
$ heroku addons:create rethinkdb
$ heroku config:set API_KEY=<YOUR_DEV_TO_API_KEY>
$ git push heroku master
$ heroku open
Note: the collection worker needs to be enabled manually on the apps resources dashboard
To run it locally you need RethinkDB installed and running. As for
deploying it to Heroku you also need a Dev.to API key and add it as the API_KEY
environment
variable.
$ node migrate.js
$ node collect.js
$ node index.js