Skip to content

CalderWhite/medium-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medium Analytics

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

Support the Medium Article

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 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 Enable developer mode and click "Load unpacked extension." Then navigate to ./extension/dist.