Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leapwallet/notifications-poc
🔔 POC for frontends to get notified of blockchain data
https://github.com/leapwallet/notifications-poc
cosmos subquery typescript
Last synced: 9 days ago
JSON representation
🔔 POC for frontends to get notified of blockchain data
- Host: GitHub
- URL: https://github.com/leapwallet/notifications-poc
- Owner: leapwallet
- License: mit
- Created: 2022-08-03T13:50:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T14:43:08.000Z (about 2 years ago)
- Last Synced: 2023-08-01T07:24:24.499Z (over 1 year ago)
- Topics: cosmos, subquery, typescript
- Language: TypeScript
- Homepage:
- Size: 313 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notifications POC
POC for frontends to get notified of blockchain data that they're interested in. This project uses [Subquery](https://subquery.network/) to notify web browsers when the Cosmos Hub wallet having the address cosmos19vf5mfr40awvkefw69nl6p3mmlsnacmm28xyqh receives cryptocurrency.
## Installation
1. Install [Docker](https://docs.docker.com/get-docker/).
2. Install the latest [Node.js](https://nodejs.org/en/download/) LTS.
3. Clone the repo using one of the following methods:
- SSH:```shell
git clone [email protected]:leapwallet/notifications-poc.git
```
- HTTPS:```shell
git clone https://github.com/leapwallet/notifications-poc.git
```
4. Install the backend:```shell
cd notifications-poc/backend && yarn && yarn codegen && yarn build
```
5. Install the frontend:```shell
cd ../frontend && npm i
```## Usage
1. Start the backend:
````shell
cd backend && yarn start:docker
````
2. Start the frontend in another terminal session:```shell
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:```shell
docker compose down
```## License
This project is under the [MIT License](LICENSE).