Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

realtime-chartjs-hamoni

real-time chart using ChartJS and Hamoni Sync - Blogged about on Dev.to

Setup

  1. Clone this repo - https://github.com/pmbanugo/realtime-chartjs-hamoni.git
  2. Install dependencies - npm install
  3. Login to Hamoni dashboard and copy your app and account ID. If you don't already have one, you need to register and create an app when you login.
  4. Open server.js and go to line 43. Replace the string placeholder with your app and account ID.
  5. Open index.js located in the directory public/js. Replace the placeholder for a hamoni account and app ID with your account and app ID copied from your dashboard.
  6. Start the app - npm start
  7. Open your browser and navigate to localhost:5000 to see the chart, and localhost:5000/vote.html) to vote.

Accompanying blog post can be read here