Skip to content

Latest commit

 

History

History

file-share

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

File share app

An example how one can use a Document store to store files.

Library

In the library folder you can find all code that is handling the file data.

Frontend

In the frontend folder you can find a React application using the library as a dependency.

Application is live at files.dao.xyx

CLI

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

Run CLI locally

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