added SNS to windows tutorial

This commit is contained in:
samedcildir
2024-01-25 13:58:45 +03:00
parent ed2290ecae
commit 819e86ce9a
2 changed files with 27 additions and 0 deletions

View File

@@ -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)

View File

@@ -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).