real-time chart using ChartJS and Hamoni Sync
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
.gitignore
LICENSE
README.md
hamoni-chartjs.gif
package-lock.json
package.json
server.js

README.md

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