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 build
cd build && python -m SimpleHTTPServer
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 thebuild
folder.npm run upload
to upload the assets to the local Swarm node.
- Run
npm run build
to build the app contents. - Run
npm run upload
to upload the contents to the local Swarm node. - Use the returned hash to access the app using the
bzz
protocol.
MIT.
See LICENSE file.