Simple demo chat app for Postal Services over Swarm.
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).
npx serve -s buildcd build && python -m SimpleHTTPServerThis app is created using Create React App. It requires node v8+ with npm to be installed.
The following scripts are exposed:
npm installto install the dependencies (must be done first).npm startto run the app locally and watch for changes.npm run buildto build the assets into thebuildfolder.npm run uploadto upload the assets to the local Swarm node.
- Run
npm run buildto build the app contents. - Run
npm run uploadto upload the contents to the local Swarm node. - Use the returned hash to access the app using the
bzzprotocol.
MIT.
See LICENSE file.