HCS Governance API
This project contains a read only API services reducing the results of HCS messages into a logical current state. The current implementation reads the entire record of a HCS topic, applies business logic to each message, and then updates the list of ballots, votes etc. as appropriate.
The server makes the rolled-up state of the system avaialble thru a read-only REST interface exposed as configured thru the environmental variable SERVER_API_PORT
.
It also relies on other environmental variables (found in the .env
file) identifying
which network to connect to, and the topic to subscribe to and token to filter with.
This is alpha software. It has not been audited. Use at your own risk.
These are instructions for running the validation server locally, without a web interface.
git clone https://github.com/the-creators-galaxy/hcs-governance
cd hcs-govnernace/server
cp sample.env .env
npm ci
npm run start:dev
visit http://localhost:3001/api/v1/info in your web browser or view logs in your console
However, you will likely want to run the entire project form it's root directory, via the Docker config.