Go through these blog posts if you wish to understand some of the design decisions in creating the app. The coding effort was the outcome of a two-part developer jam organized by BlockVigil in Bangalore 🇮🇳
Part 1: BlockVigil Developer Updates — Kicking off 2020 with Websocket integrations for Ethereum
Part 2: BlockVigil Developer Jam #2 Updates
TODOcontract.sol. Deployment instructions hereFor now, to get the API(read) key, just click on the link to the swagger.json for this contract and copy the value after /?key= appended to the URL. Refer to screenshots below.
Copy the file rollup.config.example.js to rollup.config.js. Find the following lines and enter the values as you noted down in the previous step.
process.env.API_KEY = process.env.API_KEY || 'WRITE-API-KEY-HERE';
process.env.API_READ_KEY = process.env.API_READ_KEY || 'READONLY-API-KEY-HERE';
process.env.TODO_CONTRACT_ADDRESS = process.env.TODO_CONTRACT_ADDRESS || '0xContractAddress'
npm install
npm run dev
Open up localhost:3000/todo and start clicking around.