An example how one can use a Document store to store files.
In the library folder you can find all code that is handling the file data.
In the frontend folder you can find a React application using the library as a dependency.
Application is live at files.dao.xyx
There is a CLI application inside ./cli, that allows you to do the basic functionality.
Install from remote:
npm install @peerbit/please
Now you can do
please put FILE
and
please get HASH [OPTIONAL_SAVE_PATH]
e.g.
please put test.txt
please get HASH ./some-folder
To run it locally:
First go to the root folder of the exampels repo and build it
yarn build
Then go back to the ./cli folder and now you can do:
node ./cli/lib/esm/bin.js
instead of please
to invoke the cli.
You can run through a local relay by passing a relay address using the --relay
argument