This section of the documentation covers installing, running, and exploring the Demo Miniapp code. It is recommended to follow these steps to understand:
By the completing the "Demo Miniapp" section, you will have a fully functional Demo Miniapp running locally and a solid understanding of how to integrate with Super Qi.
Before you begin, ensure you have the following installed:
Check if Git is installed:
git --version
If you see an error or "command not found", install Git:
brew install git
sudo apt update && sudo apt install git
Check if Node.js and npm are installed:
node --version
npm --version
If you see an error or "command not found", install Node.js (npm is included):
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Restart terminal, then install Node.js
nvm install 18
nvm use 18
Check if Yarn is installed:
yarn --version
If you prefer using Yarn instead of npm and it's not installed:
npm install -g yarn
Check if Go is installed:
go version
If you see an error or "command not found", install Go:
brew install go
sudo apt update && sudo apt install golang-go
Follow these steps to install the Demo Miniapp locally:
Open your terminal, move to the folder where you want the project to live, and clone the Demo Miniapp:
# Using HTTPS
git clone https://github.com/Qi-Mobile/superqi-demo-miniapp.git
# Or, using SSH
git clone git@github.com:Qi-Mobile/superqi-demo-miniapp.git

Once the cloning is complete, navigate into the project directory:
cd superqi-demo-miniapp
Open two separate terminal windows to install dependencies for both the frontend and backend.
Navigate to the frontend directory and install npm packages:
cd superqi-demo-miniapp/frontend
npm install
Navigate to the backend directory and install its dependencies. The demo ships two interchangeable backends — pick Go or Node.js:
cd superqi-demo-miniapp/backend-go
go mod tidy
go mod download
cd superqi-demo-miniapp/backend-node
npm install
You have successfully installed the Demo Miniapp and all its dependencies. Everything is now ready, and you can proceed to testing the Miniapp locally.
Ready to continue? The next section will guide you through running and testing your Demo Miniapp.