Code for Medium article: "Building an Ethereum Oracle with Web3.js 1.0"
https://medium.com/@robinkryptyk/building-an-ethereum-oracle-with-web3-js-1-0-1272b59cfc31
- clone the repo
- run
npm install
- get an API key from Dark Sky - https://darksky.net
- start Ganache and get copy one of the accounts
- paste the account address into the
account
var inwxoracle.js
- paste your Dark Sky API key into
apiKey
- start the oracle:
node wxoracle.js
- after the contract deploys, copy the address from the console
- paste the contract address into
address
onwxclient.js
- get an account from Ganache and paste into
account
- start the test client:
node wxclient.js