Skip to content

ssebs/webshare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webshare

Share files via HTTP or via the website

API endpoints:

  • POST
    • /upload/:filename
      • Body: file body
      • Returns: Path for uploaded file
  • GET
    • /download/:path
      • Returns: File
    • /
      • Returns: React web app

Usage

  • curl --data-binary @sample.png http://127.0.0.1:5000/api/upload/sample.png
    • http://localhost:5000/f179df-test.png
  • wget http://localhost:5000/f179df-test.png
    • ‘f179df-test.png’ saved [2217/2217]

Installation

  • Clone this repo
  • $ cd webshare
  • $ python3 -m venv venv
  • $ source ./venv/bin/activate
  • (venv) $ pip install -r requirements.txt
  • (venv) $ cd frontend/
  • (venv) $ npm i
  • (venv) $ npm run build
  • (venv) $ cd ..
  • (venv) $ python wsgi.py

License

MIT

About

Share files via HTTP or via the website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published