Single Proc
Install NodeJS, Docker
- Docker Git
sudo apt-get update && sudo apt install git -y && sudo apt install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
- NodeJS
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
nvm install 18
nvm use 18
Install Subsquid cli
npm install --global @subsquid/cli@latest
Buat Folder & init
mkdir proc
cd proc
sqd init single-proc -t https://github.com/subsquid-quests/single-chain-squid
cd single-proc
Download key
- https://app.subsquid.io/quests
- Pindah ke VPS, ke folder
/proc/single-proc/query-gateway/keys
Start Docker
docker compose up -d
build
npm ci
sqd build
sqd migration:apply
Run
sqd run .
Tunggu sampai di web nya jadi 100%
Setelah selesai
Stop proc menggunakan CTRL+C
Stop Docker
docker compose down -v