buckldav / sfs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static FileServer API

An api for a static fileserver based on https://github.com/halverneus/static-file-server.

Running the fileserver: docker run -d -v $PWD/files/:/web -p 8080:8080 halverneus/static-file-server:latest

Running the api: uvicorn api:app --reload

Example for downloading a file from the api is located at ./download.py.

  • Downloaded files will appear in ./downloads/ Example for uploading a file from the api is located at ./upload.py.

Fileserver files located in ./files/.

Quickly deploy: sudo bash runapp.sh

  • Requirements may need to be installed again with sudo privileges.

API Information: Found at http://localhost:8000/

About


Languages

Language:Python 84.5%Language:HTML 11.2%Language:Shell 4.4%