These are the APIs that the Vote Tracker front-end consumes.
- node (>=9.4.0)
- redis
- energid (with RPC enabled)
- Get latest code from github:
git clone https://github.com/energicryptocurrency/vote-tracker-api.git
-
Inside the cloned folder, run
npm install
to install all dependencies -
Change the configuration file according to your network settings (Energi network type and RPC credentials)
-
Energi daemon should be running with RPC enabled
-
Make sure redis is running, and it would be a good idea to activate persistence, though not strictly required. See details here
-
Run
node cron/job.js
via screen, to update data for proposals and for masternode full list