项目作者: felipewer

项目描述 :
nodejs ethereum scheduler smartcontract event listener
高级语言: JavaScript
项目地址: git://github.com/felipewer/scheduler-listener.git
创建时间: 2018-08-03T23:22:16Z
项目社区:https://github.com/felipewer/scheduler-listener

开源协议:MIT License

下载


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

  1. 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