A distributed data community
$ npm install -g dat
Warming up. Let's do a quick tour through dat CLI features. To do this, we are going to share some content, change it and then syncronize it. Also, we will see how can we get specific content.
Dat comes with a share command which can be used to share entire directories.
The ogher side of the story is download. To do this we are going to use the clone feature. To know what data we are going to download we need an address, or dat link.
We will make groups of 2 people (at least) 😺 😸.
Along with this readme you will find a directory called /cool_cats
with some high value content to share 😆.
One of you (let's say A member) in the group will be in charge of sharing our directory called /cool_cats
.
The other buddy (the B member) will be cloning the dat using the dat link.
Now A, will create a new file inside our shared directory called top_secret.md
.
Some sample content:
# TOP SECRET
> This file will be destroyed in 5 seconds.
Also it is being distributed. :cool:
To get new updates we can run the pull command.
😉 sync
- What if we share our dat link with a new computer and they only want to get the
top_secret.md
file?
- We can combine the sparse option with the special file
.datdownload
.