mirror of
https://github.com/alexgo-io/OPI.git
synced 2026-01-12 16:53:13 +08:00
added SNS to windows tutorial
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user