Microservice to send Snapshot related notifications to multiple communication channels.
- Fork this repository then run this command to install dependencies:
yarn install- Create a MySQL database then setup a new file
.envwith the MySQL connection string:
DATABASE_URL=mysql://...
HUB_URL=https://hub.snapshot.org # Use https://testnet.hub.snapshot.org for the demo instance
SERVICE_EVENTS=1- Set up the database (creates tables and initializes metadata):
yarn setup-
Comment line(s) on this file to disable provider(s).
-
Run the
devscript to start the server
yarn devCreate a new file with the name of the provider in the folder ./src/providers and expose a method send following the same format than on others files in the same folder. Then add the provider in the file ./src/providers/index.
MIT.