real-time chart using ChartJS and Hamoni Sync - Blogged about on Dev.to
- Clone this repo -
- Install dependencies -
- 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.
- Open server.js and go to line 43. Replace the string placeholder with your app and account ID.
- 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.
- Start the app -
- 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