Skip to content

scalemaildev/hashgraph_nuxt_chat

Repository files navigation

Hashgraph Nuxt Chat

This is a PoC for a NuxtJS app that utilizes the hashgraph. It's based off the original hedera-hcs-chat-js and uses nuxt-socket-io along with base socket.io to serve the hashgraph code.

This is not intended to be used on the Mainnet or as a base for any dapp, but may be a useful starting point for someone interested in using the hashgraph SDK with a modern Javascript framework.

Built from template: https://github.com/xreider/nuxt-express-boilerplate

NOTE: This uses a badly outdated Hedera SDK. This repo might still be useful as a general guideline.

Setup

Type your Testnet account id and private key into the .env file. Use 'npm install' to grab all the packages before running.

Running

Use 'npm run dev' to startup the server and client. Then go to localhost:3000 and test the browser app. Look in the console for the play-by-play of each client action.

Issues

When subscribing to the same topic multiple times from one client, duplicate messages appear in the chat.

About

Simple chat program over the HCS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published