First iteration / MVP
Windsurf told me how to install Python, and wrote the base HTML and JS, plus the PY file needed to run the Droplet server locally. My original idea was to use the web browser's localstorage, but that didn't work out, not least because the amount of data I could store that way is puny. The first iteration was very ugly and unfriendly, as the text/instructions were written in a way that made sense only to me.
After testing with my partner helping with uploading files (it worked, yay MVP), then it was refinement time.
Later iterations (screenshots)
- Add determinate loading bar during upload.
-
Make it prettier.
Hm! I've heard about classless styling/boilerplate HTML frameworks, maybe I can use one of those!
I ended up using the very lovely Water.css - Add understandable-to-humans instructions.
- Support folder uploads.
-
Delete uploaded files.
From the web app, instead of me deleting directly from Droplet's "upload" folder. - Display human-readable network device name of server.
This was great fun, and I did manage to pick up a little bit about server side code, and improve my (very poor) JS knowledge a little to boot. And of course, now I have a Snapdrop replacement. ;)
Get a Droplet of your very own. :D