An open API service indexing awesome lists of open source software.

https://github.com/calderwhite/medium-analytics

Analytics for Medium, done right.
https://github.com/calderwhite/medium-analytics

analytics chrome-extension medium medium-api node-js react reactjs web-app web-application

Last synced: 10 days ago
JSON representation

Analytics for Medium, done right.

Awesome Lists containing this project

README

          



Medium Analytics



Hourly checking on your Medium stats with insightful graphs, for free.

Support the [Medium Article](https://medium.com/@calderwhite/medium-analytics-ec27078b67b1)

# Built With























## Hosting Your Own

**NOTE:** If you don't wish to host your own, the chrome extension works out of the box with Medium Analytics Servers.
In the event that you may want to run your own private version of Medium Analytics the process is very simple!
1. Clone the repository with: `git clone https://github.com/CalderWhite/medium-analytics.git`.
2. For the proceeding steps you'll need your own Google account.
This way you can create a firebase project.
So if you don't, create a Google account.
3.
Create a [firebase](https://firebase.google.com) project.
4.
Go to > Service Accounts
and click "Generate New Private Key".
5.
Rename the downloaded json file to `medium-analytics-firebase.json`.
6.
Move this file into './server', relative to the cloned repository's root.
7.
To start the server, cd into the `server` and first install the dependancies with `npm install`.
Then, run `npm start`.
8.
Finally, you must configure the extension to use your host instead of the Medium Analytics firebase.
open `./extension/src/js/app/scripts.js`.
Replace `config` with the config generated from Authentication > WEB SETUP.
Replace `SERVER_BASE`'s value with the host of your server (for example, `127.0.0.1:8080`)
9.
Install the packages with `npm install` (coming from `./extension`).
Then run `npm run build`.
Your new, custom extension is in `./extension/dist` and can be actived by going to [the chrome extension page](chrome://extensions)
Enable developer mode and click "Load unpacked extension." Then navigate to `./extension/dist`.