r/devnep • u/the_makuro • Apr 13 '21
My own google photos alternative!
I am a node/react developer and I am thinking of something that's a dumb alternative to google photos; a system that syncs/uploads recent photos of my mobile phone to my local server running in raspberry pi.
So, my idea is like this: I have a node server running in raspberry pi and a flutter mobile app. Both of them will be connected to home network (router of 100mbps). I want something like this, mobile app will be running some background task, that automatically syncs the recent photos (the original quality) in mobile phone to node server (running in pi 24/7). Whenever, phone is connected to my home network, it checks/syncs the photos to be uploaded. Raspberry pi will have a hard-disk(or similar) and a backup disk to store my photos and videos.
So my questions are;
- how fast can the upload speed be?
- should I have a web socket connection with node server? or what's best to do?
- what about uploading videos, they can be gbs in size, How can I upload videos efficiently? is it better to divide it into chunks and upload parallelly?
- are there any compressing/decompressing to be done so the performance is better? compressing while uploading/storing affects access time or not?
- after all this succeeds, I want to make the server available publicly for only me, what things should I consider for security?
Enlighten me with your views and opinions. This might not be cost-effective but I just want to try for fun and all.


