Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

pmbanugo/realtime-chartjs-hamoni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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