Coder Social home page Coder Social logo

ethereumetl_streaming's Introduction

Ethereum ETL Streaming Pipeline

This project sets up an Ethereum ETL with all its dependecies and constantly fetch data from blockchain and push them to a connected postgres database.

It uses Dokcer for containerization and docker-compose to manage the service.

Steps to set up

First of all, make sure postgres server is already installed and is accessible. Secondly, you have Docker and docker-compose installed on your system. Then follow the following steps:

  1. Create an empty database in the postgres
  2. Clone or download this repository to the local system
  3. cd to clone/downloaded repository
  4. run git submodule update --init --recursive
  5. open the .env file and update the database credentials
  6. run chmod +x ./setup.sh
  7. run ./setup.sh in this repository
    1. Note: this command will create essential tables and indices in the database
    2. if you have tables and indices already created then skip this step
  8. open the .env file again and update the provider_uri variable
    1. currently it is set to https://mainnet.infura.io/v3/6a3f7fe0b96044b5ae8a3cbaf22920c3. If you are also using Infura then update the project id in the url.
    2. there are other variables in the .env file to tune the streaming process
  9. Finally run docker-compose up -d
    1. -d flag is used to run the etl service in detached mode (i.e in the background).
    2. if you want an interactive mode omit this -d flag from the command
    3. if you are in detached mode and want to know what is happening then run docker-compose logs
  10. That's it!!!!

ethereumetl_streaming's People

Contributors

atharnoraiz avatar mukarramishaq avatar

Stargazers

 avatar

Watchers

 avatar  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.