Install dependencies: Node.js, 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 -ycurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
nvm install 18
nvm use 18mkdir ~/global-node-packagesConfig NodeJS
npm config set prefix ~/global-node-packagesConfig Home Path
export PATH="${HOME}/global-node-packages/bin:$PATH"Install Subsquid CLI
npm install --global @subsquid/cli@latestCheck Subsquid Version
sqd --versionRun The Squid
sqd init my-single-proc-squid -t https://github.com/subsquid-quests/single-chain-squidcd my-single-proc-squidPress Get Key button in the quest card to obtain the singleProc.key key file. Save it to the ./query-gateway/keys subfolder of the squid folder. The file will be used by the query gateway container.
sqd up
npm ci
sqd build
sqd migration:applyStart Squid
sqd run .Stop Squid
sqd down