Application that allows uploading videos from trusted sources and allows sharing links to them.
You can host this on your personal NAS and use it to upload videos and then share them with friends.
- Make sure you have Python 3.11+ and pip installed on your system.
- Open this project in Cursor.
- Cursor should automatically detect the Python environment. If not, set the Python interpreter to your system Python (or a virtualenv).
- To install dependencies, run:
pip install -r requirements.txt- To run the FastAPI app locally (without Docker):
uvicorn app.main:app --reload- Install the required package:
pip install requests- Run the upload client:
python upload_client.py http://localhost:8000 /path/to/your/video.mp4Replace /path/to/your/video.mp4 with your video file path.
This will split the file, upload all chunks, and complete the upload process.
- Clear and re-build container
docker rm -f video-server && docker build -t video-server . - run container
docker run -d \
-p 8000:8000 \
-v /Users/lucianonea/my_videos:/nas/videos \
--name video-server \
video-serverpython upload_client.py generate-key myuserpython upload_client.py generate-key myuser --upload --server-url http://localhost:8000python upload_client.py upload http://localhost:8000 /path/to/video.mp4 myuser