Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsdevcoffee/chainlink-fun
https://github.com/itsdevcoffee/chainlink-fun
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsdevcoffee/chainlink-fun
- Owner: itsdevcoffee
- Created: 2020-10-18T17:47:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T14:01:54.000Z (over 3 years ago)
- Last Synced: 2024-10-04T16:09:29.772Z (3 months ago)
- Language: Shell
- Size: 70.3 KB
- Stars: 13
- Watchers: 1
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chainlink Fun
> Learn about chainlink by working through basic examples.## Deploy Chainlink Node
### Run with Docker
#### Requirements
- Install [Docker](https://docs.docker.com/get-docker/)
- Install [Postgres](https://www.postgresql.org/)
- Create an [Infura](https://infura.io/) 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/apicredentials.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](https://ropsten.chain.link/) and [ETH ropsten faucet](https://faucet.ropsten.be/).