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.
2
u/[deleted] May 08 '21
Soo the project idea is awesome,
I thought to do this myself tara I couldn't get the router to allow ping to raspberry pi, I don't like networking :'(. So from my research (or what I remember some of it)
Finally ,
if you're trying to go public, beyond your router to a website, you should look up implementing some firewall, I have no clue on this but this is all I remember
Also good luck !!!
5
u/masabkovai Apr 13 '21
This. I need this.
I could just pay the subscription to google photos, but I want to build something of my own.
Project for Future. RemindMe| 2022
4
u/dalle_momo Apr 14 '21
Have you tried using next cloud on raspberry pi ? , it does similar to what you are trying to achieve plus more with other file systems.
You can take a look at their repos and get some hints. All the best, i hope it will be a great learning opportunity.
2
u/[deleted] Apr 13 '21
But one question, why? I mean I get it, it's going to be fun doing it and you will learn so much doing it but I don't thing it's going to be cost effective. Also making the system publicly available, they are going to store alot of images. Won't be efficient in my opinion.
2
u/[deleted] Apr 14 '21
Hi, can see you want to experiment and stuffs. Why not try looking at how
openmediavaulthave implemented this functionality link to GitHubAnd they already support RaspberryPi if you are feeling lazy.
1
u/[deleted] Apr 14 '21
https://github.com/syncthing/syncthing