https://github.com/coolcode/dfile-rust
[Rust + Rocket] DFile: A fancy IPFS-based file sharing mode
https://github.com/coolcode/dfile-rust
Last synced: 10 months ago
JSON representation
[Rust + Rocket] DFile: A fancy IPFS-based file sharing mode
- Host: GitHub
- URL: https://github.com/coolcode/dfile-rust
- Owner: coolcode
- Created: 2019-10-18T08:04:56.000Z (over 6 years ago)
- Default Branch: s3
- Last Pushed: 2024-04-16T23:50:10.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T04:06:14.476Z (10 months ago)
- Language: JavaScript
- Homepage: https://dfile.app
- Size: 22.9 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Rust + Rocket] DFile: A fancy S3-based file sharing mode
[](https://www.codacy.com/manual/coolcode/dfile?utm_source=github.com&utm_medium=referral&utm_content=coolcode/dfile&utm_campaign=Badge_Grade)
This is a no-bullshit and S3-based file hosting that also runs on [https://dfile.app](https://dfile.app)

## DFile backend (server)
Before running the service for the first time, run
```bash
cp sample.env .env
```
Modify .env (mainly setup your S3 settings)
```bash
```
Run it
```bash
cargo run
```
## DFile frontend (app)
Install yarn first: [https://yarnpkg.com/lang/en/docs/install/](https://yarnpkg.com/lang/en/docs/install/)
```bash
# run
yarn
yarn dev
# export to production
yarn export
```
## How to use
```bash
# 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
```