Skip to content

πŸ”” POC for frontends to get notified of blockchain data

License

Notifications You must be signed in to change notification settings

leapwallet/notifications-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Notifications POC

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.

Installation

  1. Install Docker.

  2. Install the latest Node.js LTS.

  3. 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
  4. Install the backend:

    cd notifications-poc/backend && yarn && yarn codegen && yarn build
  5. Install the frontend:

    cd ../frontend && npm i

Usage

  1. Start the backend:

    cd backend && yarn start:docker
  2. 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.

  3. Once you're done:

    1. In the frontend's terminal session, enter Ctrl+C.
    2. In the backend's terminal session:
      1. Enter Ctrl+C

      2. Shut down the backend:

        docker compose down

License

This project is under the MIT License.