Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

nodejs ethereum scheduler smartcontract event listener

License

Notifications You must be signed in to change notification settings

felipewer/scheduler-listener

Repository files navigation

Scheduler Listener

NodeJS + Web3 process that listens for events on the Scheduler smart contract and registers the corresponding events on Goggle Calendar.

Only valid events are registered on the calendar. The rules are:

  • Name, Company and well formed email address are required.
  • The event must be at least 3 hours in the future.
  • The event must be within the daily minimum and maximum hour range.
  • The event must be on a weekday.

Setup

1 - Clone the repository

git clone https://github.com/felipewer/scheduler-listener.git

2 - Create a Google Service Account and download the respective private key file (JSON) into the project folder. Make sure it is named credentials.json. It is needed to authorize requests to the calendar API.

3 - Copy .env.sample to .env and fill the environment variables accordingly.

4 - Start listening for events

docker-compose up -d

About

nodejs ethereum scheduler smartcontract event listener

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published