Skip to content

coolcode/dfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DFile: A fancy IPFS-based file sharing mode

Codacy Badge

This is a no-bullshit and IPFS-based file hosting that also runs on https://dfile.app

img

DFile backend (server)

Before running the service for the first time, run

cp config.sample config.py

Modify config.py (mainly setup your IPFS Node)

IPFS_CONNECT_URL = "/ip4/127.0.0.1/tcp/5001/http"
IPFS_FILE_URL = "https://127.0.0.1:8080/ipfs/"
DOMAIN = "https://localhost:5000"

Run it

./dfile.py debug

DFile frontend (app)

Install yarn first: https://yarnpkg.com/lang/en/docs/install/

# run
yarn
yarn dev

# export to production
yarn export

How to use

# Upload using cURL
➜ curl -F [email protected] https://dfile.app
https://dfile.app/QmV...HZ
# Download the file
➜ curl -L https://dfile.app/QmV...HZ -o yourfile.txt