POC for frontends to get notified of blockchain data that they're interested in. This project uses Subquery to notify web browsers when the Cosmos Hub wallet having the address cosmos19vf5mfr40awvkefw69nl6p3mmlsnacmm28xyqh receives cryptocurrency.
-
Install Docker.
-
Install the latest Node.js LTS.
-
Clone the repo using one of the following methods:
-
SSH:
git clone git@github.com:leapwallet/notifications-poc.git
-
HTTPS:
git clone https://github.com/leapwallet/notifications-poc.git
-
-
Install the backend:
cd notifications-poc/backend && yarn && yarn codegen && yarn build
-
Install the frontend:
cd ../frontend && npm i
-
Start the backend:
cd backend && yarn start:docker
-
Start the frontend in another terminal session:
cd frontend && npm start
Open the URL printed to the console in your browser, and allow notifications to see the demo.
-
Once you're done:
- In the frontend's terminal session, enter
Ctrl+C
. - In the backend's terminal session:
-
Enter
Ctrl+C
-
Shut down the backend:
docker compose down
-
- In the frontend's terminal session, enter
This project is under the MIT License.