Post Fiat Foundation tools for node setup and management.
- Ubuntu operating system
- Python 3.11 or greater
- PostgreSQL 16 or greater with 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
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 .
- Run the node setup command:
nodetools setup-node
You will be prompted to provide:
- XRPL private key
- OpenRouter API key
- PostgreSQL database connection string
- Initialize the database:
nodetools init-db
This will:
- Create the database
postfiat_db_testnet
- Create the
postfiat
user - Set up the required schema
Connect to the database as postgres superuser:
bash
sudo -u postgres psql postfiat_db_testnet
Once connected, create the pgvector extension:
CREATE EXTENSION vector;