Building a decentralized news service with Chainlink Functions and Hacker News API
(Block Magic Hackathon Session)
Richard Gottleber - @thergdev
https://www.youtube.com/watch?v=8iLuNx9jYSo
https://functions.chain.link/playground/b44eba0d-4498-48c5-a675-81780fc6873e
0xb835b0F63F411482B4EA0cfbD47Fe6BD6949AD70
https://functions.chain.link/sepolia/2489
- Prerequisite: Have the smart contract deployed and run sendRequest a few times
- Clone the repository
- Run
npm install
within thefrontend
folder - Create a
.env
file in the project root folder with the following content:
# RPC for sepolia (Change this if you want to use a different chain)
PROVIDER_URL="https://rpc.sepolia.org"
# CHANGE THIS TO YOUR CONTRACT ADDRESS!
CONTRACT_ADDRESS="0xb835b0F63F411482B4EA0cfbD47Fe6BD6949AD70"
- Run
npm run dev
in the terminal from thefrontend
folder - Open page at
http://localhost:4321
or with the given port if you changed it