coolcode / dfile-rust

[Rust + Rocket] DFile: A fancy IPFS-based file sharing mode

Home Page:https://dfile.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Rust + Rocket] DFile: A fancy S3-based file sharing mode

Codacy Badge

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

img

DFile backend (server)

Before running the service for the first time, run

cp sample.env .env

Modify .env (mainly setup your S3 settings)

Run it

cargo run

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 file=@yourfile.txt http://localhost:8000
http://localhost:8000/QmV...HZ
# Download the file
➜ curl -L http://localhost:8000/QmV...HZ -o yourfile.txt

About

[Rust + Rocket] DFile: A fancy IPFS-based file sharing mode

https://dfile.app


Languages

Language:JavaScript 65.3%Language:Rust 14.3%Language:Python 9.3%Language:CSS 7.4%Language:Shell 2.6%Language:HTML 0.6%Language:Dockerfile 0.6%