Skip to content

Protocol and reference implementation for PSS-based chat

License

Notifications You must be signed in to change notification settings

MainframeOS/swarmchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwarmChat demo app

Simple demo chat app for Postal Services over Swarm.

Running the demo

A local Swarm node with WebSocket APIs is required for the app to access PSS. The SwarmChat app assets are located in the build folder. After having dowloaded/pulled the project, you can simply open the build/index.html file in your browser, or start a static HTTP server for it (which might be needed depending on the CORS setup of your local Swarm node).

Example using node (npx and serve)

npx serve -s build

Example using Python

cd build && python -m SimpleHTTPServer

Development

This app is created using Create React App. It requires node v8+ with npm to be installed.

The following scripts are exposed:

  • npm install to install the dependencies (must be done first).
  • npm start to run the app locally and watch for changes.
  • npm run build to build the assets into the build folder.
  • npm run upload to upload the assets to the local Swarm node.

Publishing a new version

  1. Run npm run build to build the app contents.
  2. Run npm run upload to upload the contents to the local Swarm node.
  3. Use the returned hash to access the app using the bzz protocol.

License

MIT.
See LICENSE file.

About

Protocol and reference implementation for PSS-based chat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published