Skip to content

Skelectric/nodetools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodetools

Post Fiat Foundation tools for node setup and management.

Prerequisites

  • Ubuntu operating system
  • Python 3.11 or greater
  • PostgreSQL 16 or greater with pgvector extension

Installation Guide

1. Install pgvector Extension

First, install the required build dependencies:

sudo apt install build-essential postgresql-server-dev-16

Clone and build the pgvector repository:

git clone --branch v0.5.1 https://github.com/pgvector/pgvector.git
cd pgvector
make
sudo make install

2. Install NodeTools

Add NodeTools as a dependency to your Python project's setup.py:

install_requires=[
'nodetools @ git+https://github.com/Skelectric/nodetools.git',
# ... other dependencies
]

Install your project in development mode:

pip install -e .

3. Node Configuration

  1. Run the node setup command:
nodetools setup-node

You will be prompted to provide:

  • XRPL private key
  • OpenRouter API key
  • PostgreSQL database connection string
  1. Initialize the database:
nodetools init-db

This will:

  • Create the database postfiat_db_testnet
  • Create the postfiat user
  • Set up the required schema

4. Database Configuration

Connect to the database as postgres superuser:

bash
sudo -u postgres psql postfiat_db_testnet

Once connected, create the pgvector extension:

CREATE EXTENSION vector;

About

Post Fiat NodeTools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.5%
  • PLpgSQL 1.5%