ipfs: Fix: identation and linting

This commit is contained in:
Marco D'Agostini 2020-09-30 19:24:08 -05:00
parent 187b2b3562
commit 1e690fd253

View File

@ -9,21 +9,24 @@ tags: tutorial, ipfs
1. [Install ipfs](https://ipfs.io/#install) 1. [Install ipfs](https://ipfs.io/#install)
2. Initiate ipfs main folder `ipfs init`, not sure why but this is required for following commands 2. Initiate ipfs main folder `ipfs init`, not sure why but this is required for following commands
3. Serve a file `ipfs add {filepath}`. It should return something like this 3. Serve a file `ipfs add {filepath}`. It should return something like this
```bash ```bash
added QmdsEVLRXioANssEVLRXYioANsGtANsGtRXYioANsGtAWZ file.md added QmdsEVLRXioANssEVLRXYioANsGtANsGtRXYioANsGtAWZ file.md
37.62 KiB / 37.62 KiB [===========================] 100.00% 37.62 KiB / 37.62 KiB [===========================] 100.00%
``` ```
4. Start server with `ipfs daemon` 4. Start server with `ipfs daemon`
5. **Missing step**, server seems to need an open port (not firewalled) 5. **Missing step**, server seems to need an open port (not firewalled)
6. Download file from any device `ipfs get /ipfs/QmdsEVLRXioANssEVLRXYioANsGtANsGtRXYioANsGtAWZ` <-- that's the hash returned from **step 3** 6. Download file from any device `ipfs get /ipfs/QmdsEVLRXioANssEVLRXYioANsGtANsGtRXYioANsGtAWZ` <-- that's the hash returned from **step 3**
```bash ```bash
$ ls $ ls
QmdsEVLRXioANssEVLRXYioANsGtANsGtRXYioANsGtAWZ QmdsEVLRXioANssEVLRXYioANsGtANsGtRXYioANsGtAWZ
``` ```
Note the filename is just the hash, the original filename is lost.
*IPNS seems to solve the filename problem, need to research on how to use it* Notice the filename is just the hash, the original filename is lost.\
**Note:** *IPNS seems to solve the filename problem, need to research on how to use it*
## What led to learning this ## What led to learning this