Skip to content

MERN application with Smartcontract communication. Displays example of Requesting/Receiving ETH price from chainlink aggregator

License

Notifications You must be signed in to change notification settings

Kapn/chainlink-fullstack

Repository files navigation

chainlink-fullstack

This repository contains the base/foundation needed to store off-chain data in a Mongo db and interact with smartcontracts. This app uses a MERN stack.

The example on the dashboard requests the current ethereum price from a public chainlink oracle, and listens for the fullfill event once the chainlink request has been fullfilled.

Steps to startup MERN App

Requires an INFURA account and a mongodb db. Both of these services are free and quick to spin up. Ofcourse you have the option to connect to local RPC client but you will need to deploy several other Contracts locally. Also, instead of connecting to mongodb.com db you have the option to spin up a local mongo db.

Update the following in the .env with the values from each account:

INFURA_MNEMONIC=
INFURA_URL=
MONGO_CONNECTION_STRING=

In the root directory run:

npm install
npm run client

Steps to Deploy Contracts to Ropsten

In the root directory run:

npm run migrate-ropsten

Dont forget

Supply LINK to your contract LINK Ropsten faucet

Supply ETH to your Wallet ETH Ropsten faucet

Have MetaMask installed

Dashboard Image

About

MERN application with Smartcontract communication. Displays example of Requesting/Receiving ETH price from chainlink aggregator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published