Coder Social home page Coder Social logo

chainlink-fun's Introduction

Chainlink Fun

Learn about chainlink by working through basic examples.

Deploy Chainlink Node

Run with Docker

Requirements

  • Install Docker
  • Install Postgres
  • Create an Infura account
    • Click the Projects section and create a new project.
    • In the KEYS section you will see a list of different credentials. Under ENDPOINTS tab change the select to Ropsten.
    • Underneath this you will have two links. Notice the wss://ropsten.infura.io/ws/v3/... link. You will need this in a second

Running the Node

  • Run cd run-node

  • Open the .env file and where ETH_URL=INFURA_ROPSTEN_LINK_HERE is paste your infura link.

  • Create $PATH_TO_DIR/chainlink-volume directory

  • Create $PATH_TO_DIR/chainlink-volume/password.txt - Password used within Chainlink node for access Add the following:

secret
  • Create $PATH_TO_DIR/chainlink-volume/apicredntials.txt - Credientials to login into the Chainlink UI Add the following:
[email protected]
chainlinkPassword
  • Add shared paths to Docker
    • Docker -> Preferences -> Resources -> File Sharing
    • Add $PATH_TO_DIR/chainlink-volume
    • Add $PATH_TO_POSTGRES_DATA
  • Run docker-compose up - This will run our docker-compose.yml and spin up a Postgres/Chainlink node instance.
  • This will run our Postgres instance but fail when starting the Chainlink node because there is no chainlink postgres database created. We can solve this by entering the CLI of our Postgres(pg_chainlink) instance inside Docker.
  • Open the Docker dashboard and click on chainlink-ropsten then open the CLI for chainlink-ropsten_database_1.
  • Enter the Postgres console by typing: psql -U postgres -h localhost
  • Now create the database: CREATE DATABASE chainlink;
  • Run docker-compose up once again and your Chainlink node should be running as expected.
  • Goto: http://localhost:6688 and you will be greeted with a login page.
  • Type in the credentials specified in your apicredentials.txt file and boom! You are logged into your locally running Chainlink node.
  • You can locate your account address by clicking on the Configuration tab in the top right corner and locating the ACCOUNT_ADDRESS key variable.
  • From here you should fund your address LINK and ETH. You can do that by copying your account address and going to the LINK ropsten faucet and ETH ropsten faucet.

chainlink-fun's People

Contributors

itsdevcoffee avatar kwsantiago avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.