A starter project for deploying a chainlink node and making requests to it
This project is inspired by airnode-starter and aims to help people who are new to chainlink to get some first hand experience. It is a demo for "Running a Chainlink Node" from the official chainlink doc. I have fun setting it up and it helps me better understand how the system works. I hope it will be the same for you!
- Clone this repo
- Install docker
- Run the following script
# in the project root folder
./local-setup.sh
If everyhing goes well, you can visit http://localhost:6688 and enter the default credential to login. The credential is
account: user@test.com
password: password
(The credential is stored in credential/.api)
You will see an example job added in the job page.
Before proceeding, make sure you follow the instructions and successfully setup the chianlink infrastructure on aws.
- Clone this repo
- Install docker
- Replace the endpoint in
/env/.env.linknode
with your own - Go to Infura, create an account and get Rinkeby provider URL(one for https, one for websocket)
- Create/Replace both URL in your
/env/.env.provider
file with the URL you got from Infura
# it should look something like this
PROVIDER_HTTP_URL=https://rinkeby.infura.io/v3/{YOUR_KEY}
PROVIDER_WS_URL=wss://rinkeby.infura.io/ws/v3/{YOUR_KEY}
- Run the following script
# in the project root folder
./rinkeby-cloud-setup.sh
Note: The script will ask you to fund the generated wallet, you can get some free ethers from https://faucet.rinkeby.io
# in the project root folder
docker run --env NODE_ENV='local' --net=host -v $(pwd):/chainlink-dev/ -it chainlink-local-dev \
node scripts/make-request.js
# in the project root folder
docker run --env NODE_ENV='rinkeby' --net=host -v $(pwd):/chainlink-dev/ -it chainlink-local-dev \
node scripts/make-request.js