Git Product home page Git Product logo

indexer-project's Introduction

Indexer Project

Intro

Indexer Project achieves Extract, Translate, Loading (ETL) progress by using Python and Shell script, allowing users to load different information from files to database. The blocks in blockchains are the primary information to be loaded.

Requirement

Python3, PostgreSQL, JQ, and Shell are required to run the project. To run the project, installation of all three softwares is required, including the Python liabraries that the Project applies.

Python:

Version: 3.10 or above

PostgreSQL:

Version: 16.2

JQ:

Version: 1.7.1

Installation

Note: If using python3 command, replace all instances of pip with pip3.

Before installing the dependencies, please type command:

pip install --upgrade pip
pip freeze

To install all required libraries for Python, run the following command

pip install -r requirements.txt

Usage

To run the whole project, run the command git clone

git clone https://github.com/Shikhar-G/Indexer-Project.git

Please open 'info.json' to input the postgreSQL login information. Do not change the file name or move this file.

For the db_name field, ensure this database already exists.

This script requires a folder containing decrypted blocks to be parsed.

Then, from the root directory of the repository, run following command:

./load_transactions.sh -b <block folder location>

or if using the python3 command, run:

./load_transactions.sh -b <block folder location> -t

if the command above does not work, run the following:

bash load_transactions.sh -b <block folder location>

or

bash load_transactions.sh -b <block folder location> -t

ERD

ERD for indexer

indexer-project's People

Contributors

ziqiyang6 avatar tmwang7324 avatar shikhar-g avatar

Forkers

tmwang7324

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.