0xSachinK / octobay

Ethereum Payment Service for GitHub Users

Home Page:https://octobay.uber.space

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OctoBay

Local Development Setup

Prepare

You need Node v12.18, Go 1.14 and an empty postgres database named chainlink-local with the default postgres:postgres user and port 5432 (or adjust .env.chainlink.sample) as well as a GitHub OAuth app client ID for the web app and a personal access token for the chainlink adapters. You will be asked during installation to provide this information.

Install

Clone the repository and install its dependencies.

git clone https://github.com/mktcode/octobay && cd octobay && yarn

Now start the local Ethereum node, the Gas Station Network and the Chainlink node and its adapters, all in their own terminal sessions.

yarn evm
# or: yarn evm 'mnemonic seed phrase'
yarn evm:gsn

When running the Chainlink node for the first time, you will be asked to set an email address and a password. You'll need those in the next step.

yarn chainlink:node

When running the adapters for the first time, you will be asked to provide your GitHub personal access token.

yarn chainlink:adapters

Deploy Contracts

When running for the first time, you will be asked to provide your Chainlink node's address. Open http://localhost:6688/config in your browser (yarn chainlink:node must be running), login using your email and password from before, and copy the ACCOUNT_ADDRESS. Now you can deploy the contracts. During deployment you will also have to log in to your Chainlink node, so the necessary job specifications can be created for you.

yarn evm:deploy

This will deploy all OctoBay contracts as well as the Chainlink token and an oracle, create jobs for that oracle on the Chainlink node and configure the OctoBay contract accordingly and also make sure all contracts are funded properly.

Run App

When running the app for the first time you will be asked to provide your GitHub app's client ID. Run the app and open http://localhost:3000/octobay in your browser.

yarn app

About

Ethereum Payment Service for GitHub Users

https://octobay.uber.space


Languages

Language:Vue 77.3%Language:JavaScript 18.7%Language:Sass 4.0%