{"id":27259589,"url":"https://github.com/coolcode/dfile","last_synced_at":"2025-04-11T04:06:19.493Z","repository":{"id":52152493,"uuid":"202588456","full_name":"coolcode/dfile","owner":"coolcode","description":"[Python +  Flask] DFile: A fancy S3-based file sharing mode","archived":false,"fork":false,"pushed_at":"2021-05-06T20:09:28.000Z","size":27203,"stargazers_count":82,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T04:06:13.914Z","etag":null,"topics":["blockchain","dapp","decentralized","dfile","docker","file-sharing","file-upload","flask","free","ipfs","nginx","node","nodejs","python","reactjs","yarn"],"latest_commit_sha":null,"homepage":"https://dfile.app","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coolcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["coolcode"],"patreon":"xbruce","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-08-15T18:01:51.000Z","updated_at":"2025-02-18T01:58:03.000Z","dependencies_parsed_at":"2022-09-02T00:41:14.818Z","dependency_job_id":null,"html_url":"https://github.com/coolcode/dfile","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolcode%2Fdfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolcode%2Fdfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolcode%2Fdfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolcode%2Fdfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coolcode","download_url":"https://codeload.github.com/coolcode/dfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248339279,"owners_count":21087215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","dapp","decentralized","dfile","docker","file-sharing","file-upload","flask","free","ipfs","nginx","node","nodejs","python","reactjs","yarn"],"created_at":"2025-04-11T04:06:18.792Z","updated_at":"2025-04-11T04:06:19.479Z","avatar_url":"https://github.com/coolcode.png","language":"SCSS","readme":"# [Python] DFile: A fancy S3-based file sharing mode \n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3b25d03f9535456997878815286921eb)](https://www.codacy.com/manual/coolcode/dfile?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=coolcode/dfile\u0026utm_campaign=Badge_Grade)\n\nThis is a no-bullshit and S3-based file hosting that also runs on [https://dfile.app](https://dfile.app)\n\n![img](https://github.com/coolcode/dfile/blob/master/share/img/dfile.png?raw=true)\n\n## DFile backend (api)\n\nBefore running the service for the first time, run\n\n```bash\ncp config.sample config.py\n```\n\nModify config.py (mainly setup your [S3](https://aws.amazon.com/s3/))\n\n```bash\nDOMAIN = \"http://localhost:5000\"\nS3_REGION = \"\u003cs3 region\u003e\"\nS3_ENDPOINT = \"https://s3-domain.com\"\nS3_KEY = \"\u003cyour s3 key\u003e\"\nS3_SECRET = \"\u003cyour s3 secret\u003e\"\n```\n\nRun it\n\n```bash\npython3 -m venv venv\nsource ./venv/bin/activate\npip install -r requirements.txt\nexport FLASK_APP=app\nexport FLASK_ENV=development\nexport FLASK_DEBUG=1\nflask run --host 0.0.0.0 --port 5000\n```\n\n## DFile frontend (app)\n\nInstall yarn first: [https://yarnpkg.com/lang/en/docs/install/](https://yarnpkg.com/lang/en/docs/install/)\n\n```bash\n# run\ncd app\nyarn\nyarn dev\n\n# export to production\nyarn export\n```\n\n## How to use\n\n```bash\n# Upload using cURL\n➜ curl -F file=@yourfile.png https://dfile.herokuapp.com\nhttps://dfile.app/d/F5r3yiDM.png\n\n# Download the file\n➜ curl -L https://dfile.app/d/F5r3yiDM.png -o xxx.png\n```\n\n## Release History\n\n- 2020/05/20: https://github.com/coolcode/dfile/tree/v0.20.0520\n    - UI theme changed from Semantic React to Reactstrap (aka. React Bootstrap)\n    - nextjs upgraded to 9.4.2\n    - reactjs upgraded to 16.13.1\n\n- 2020/05/16: https://github.com/coolcode/dfile/tree/v0.20.0516\n    - File server changed from DigitalOcean to AWS S3\n    - API server changed from Singapore to USA (us-west-2)\n    - Saved uploads and downloads to Postgresql (us-west-2)\n    - API changed to https://dfile.herokuapp.com\n    - Shorten file url, easy to share file. https://dfile.app/d/F5r3yiDM.png\n    - Breaking changes, old files in Singapore server would be removed.\n\n- 2019/10/21: https://github.com/coolcode/dfile/tree/v0.19.1021\n    - S3-based file sharing mode\n    - Deployed to DigitalOcean\n    - All servers were in Singapore\n        \n- 2019/10/03: https://github.com/coolcode/dfile/tree/v0.19.1003\n    - IPFS-based file sharing mode\n    - Deployed to DigitalOcean\n    - All servers were in Singapore\n","funding_links":["https://github.com/sponsors/coolcode","https://patreon.com/xbruce"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolcode%2Fdfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoolcode%2Fdfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolcode%2Fdfile/lists"}