From 819e86ce9ad97199d140c74b2affaa9529030c41 Mon Sep 17 00:00:00 2001 From: samedcildir Date: Thu, 25 Jan 2024 13:58:45 +0300 Subject: [PATCH] added SNS to windows tutorial --- INSTALL.windows.md | 26 ++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 27 insertions(+) diff --git a/INSTALL.windows.md b/INSTALL.windows.md index ef98a88..3ae8ea2 100644 --- a/INSTALL.windows.md +++ b/INSTALL.windows.md @@ -53,6 +53,7 @@ When output matches mempool.space, BTC Core synced. ```bash py -m pip install python-dotenv py -m pip install pyscopg2-binary +py -m pip install json5 py -m pip install requests ``` @@ -105,6 +106,13 @@ cd bitmap_api npm install ``` +Then install: +```bash +cd .. +cd sns_api +npm install +``` + # Run **Main Meta-Protocol Indexer** @@ -154,6 +162,24 @@ cd bitmap_api node api.js ``` +**SNS Indexer** +```bash +cd .. +cd sns_index +py reset_init.py +``` +~ Complete prompts (if you did .env earlier, skip) +```bash +py sns_index.py +``` + +**SNS API** +```bash +cd .. +cd sns_api +node api.js +``` + # Update - Stop all indexers and apis (preferably starting from main indexer but actually the order shouldn't matter) diff --git a/README.md b/README.md index 0d7cc3a..3e0f4e9 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ cumulative_hash = sha256_hex(last_cumulative_hash + block_hash) For detailed installation guides: - Ubuntu: [installation guide](INSTALL.ubuntu.md) +- Windows: [installation guide](INSTALL.windows.md) OPI uses PostgreSQL as DB. Before running the indexer, setup a PostgreSQL DB (all modules can write into different databases as well as use a single database).